logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-07-2010, 07:58 PM   #1
Bravat
 
Join Date: Feb 2010
Posts: 15
Default Help with MasterDetail

What is the code to highlight visited links in spry dataset? I tried .MasterDetail .MasterColumnVisited, background-color:#000;
but nothing happend.
Bravat is offline   Reply With Quote
Old 03-07-2010, 11:08 PM   #2
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 1,847
Default

Maybe:

.MasterDetail a:visited

although it would be easier if we could see your page.
__________________
If my answer helped, you might want to sign up for my Dominate Dreamweaver online training and learn to Dominate Dreamweaver in just 12 weeks.
DWcourse is online now   Reply With Quote
Old 03-08-2010, 10:42 AM   #3
Bravat
 
Join Date: Feb 2010
Posts: 15
Default

It is not on-line yet, but here is the code for master detail:

Code:
@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;
}
Bravat is offline   Reply With Quote
Old 03-08-2010, 04:03 PM   #4
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 1,847
Default

I still think .MasterDetail a:visited would work for highlighting the visited link itself.
__________________
If my answer helped, you might want to sign up for my Dominate Dreamweaver online training and learn to Dominate Dreamweaver in just 12 weeks.
DWcourse is online now   Reply With Quote
Old 03-08-2010, 05:16 PM   #5
Bravat
 
Join Date: Feb 2010
Posts: 15
Default

I tried, it does not work.
Bravat is offline   Reply With Quote
Old 03-08-2010, 05:38 PM   #6
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 4,695
Default

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.
Corrosive is online now   Reply With Quote
Old 03-08-2010, 06:16 PM   #7
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 1,847
Default

We are talking about actual links <a href="etc."> right?

Or just visited fields in the data set???
__________________
If my answer helped, you might want to sign up for my Dominate Dreamweaver online training and learn to Dominate Dreamweaver in just 12 weeks.
DWcourse is online now   Reply With Quote
Old 03-08-2010, 06:24 PM   #8
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 8,348
Default

Quote:
Originally Posted by Bravat View Post
I tried, it does not work.
That syntax has worked for over 10 years, so you're doing something wrong.
domedia is offline   Reply With Quote
Old 03-08-2010, 08:30 PM   #9
Bravat
 
Join Date: Feb 2010
Posts: 15
Default

Little misunderstanding . I mean visited fields in the date set (in mastercolumn).
Bravat is offline   Reply With Quote
Old 03-08-2010, 09:07 PM   #10
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 1,847
Default

I'm fairly certain you can't do that without some major scripting work (if it's even possible).
__________________
If my answer helped, you might want to sign up for my Dominate Dreamweaver online training and learn to Dominate Dreamweaver in just 12 weeks.
DWcourse is online now   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2006 DreamweaverClub.com