PDA

View Full Version : Help with MasterDetail


Bravat
03-07-2010, 07:58 PM
What is the code to highlight visited links in spry dataset? I tried .MasterDetail .MasterColumnVisited, background-color:#000;
but nothing happend.

DWcourse
03-07-2010, 11:08 PM
Maybe:

.MasterDetail a:visited

although it would be easier if we could see your page.

Bravat
03-08-2010, 10:42 AM
It is not on-line yet, but here is the code for master detail:

@charset "UTF-8";

/* SpryMasterDetail.css */

/* Copyright (c) 2007. Adobe Systems Incorporated. All rights reserved. */

/* This is the selector for the main Master/Detail structure container.
*
* If you want to constrain the width of the Master/Detail structure, set a width on
* the Master/Detail container. By default, our structure expands horizontally to fill
* up available space.
*/
.MasterDetail
{
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
color: #FFF;
}

/* This is the selector for the Master Container element which houses all the MasterColumn
* classes. By default the Master column occupy about 35% from the width of the
* entire structure.
*/
.MasterDetail .MasterContainer
{
width: 15%;
float: left;
overflow: hidden;
}

/* This is the selector for a Master Column element which holds the actual data for
* a master column.
*/
.MasterDetail .MasterColumn
{
font-size: 14px;
padding:0px;
cursor:pointer;
font-family: Verdana, Geneva, sans-serif;
color: #FFF;
overflow: auto;
z-index: -1;
font-weight: bolder;

/* This is the selector for a highlighted Master Column element.
*/
.MasterDetail .MasterColumnHover
{
background-color: #000;
}
/* This is the selector for a selected Master Column element.
*/
.MasterDetail .MasterColumnSelected
{
background-color:#000;
color: white;
}
/* This is the selector for the Detail Container element which houses all the DetailColumn
* classes. By default the Detail column occupy about 60% from the width of the
* entire structure.
*/
.MasterDetail .DetailContainer
{
padding-right:20px;
width: 80%;
float: right;
overflow: auto;
height: 536px;
z-index: 3;
}

/* This is the selector for a Detail Column element which holds the actual data for
* a detail column.
*/
.MasterDetail .DetailColumn
{
margin-bottom: 1px;
overflow: auto;
z-index: 2;
font-family: Verdana, Geneva, sans-serif;
font-size: 14px;
text-align: justify;
}

DWcourse
03-08-2010, 04:03 PM
I still think .MasterDetail a:visited would work for highlighting the visited link itself.

Bravat
03-08-2010, 05:16 PM
I tried, it does not work.

Corrosive
03-08-2010, 05:38 PM
The code DWCourse has given you really should work. I can't see a better way of doing it. You may have implemented it incorrectly.

DWcourse
03-08-2010, 06:16 PM
We are talking about actual links <a href="etc."> right?

Or just visited fields in the data set???

domedia
03-08-2010, 06:24 PM
I tried, it does not work.
That syntax has worked for over 10 years, so you're doing something wrong. :wink:

Bravat
03-08-2010, 08:30 PM
Little misunderstanding :D. I mean visited fields in the date set (in mastercolumn).

DWcourse
03-08-2010, 09:07 PM
I'm fairly certain you can't do that without some major scripting work (if it's even possible).