Forum Moderators: not2easy
I am using anchors tags to note which styles are being used on particular section of the page.
Is anyone else running into this dilema. If so, how are you handling it?
I wouldn't say it's a dilemma by any means.
Just note what you do in your .css like you do in your .html. It should be easier to track at this point. You can use note tags just as you do in your html pages to label sections for when you come back in 6 months -- //.
If I understand you correctly - Use descriptive names for your styles, for i.e., #leftside, #rightside, #navbar, etc...
Your HTML will be easy to markup as well considering it will be a third the size of your table layout.
Also : the anchor tag?
M
Nick, sorry for being unclear. But madcat (thx) gave me some advise. It's not much of a problem, I just wish that dreamweaver had an option of clicking a on a particular style in the CSS palette and all the text that applied to that style would become highlighted.
Maybe it's available in the MX version..
.nilt {
float:left;
width:200px;
height:auto;
padding:5px;
color:#000;
background:#ccc;
border:1px solid #000;
}
could be used for a floating text box containing news items and .nilt would be a logical abbreviation. But what happens when your site grows, or you appliy the class in diverse locations? The class .nilt may no longer be so easily remembered.
.news-item-floatleft {
float:left;
width:200px;
height:auto;
padding:5px;
color:#000;
background:#ccc;
border:1px solid #000;
}
The above uses a name that provides description and make it much easier to manage styles. Avoid using "cryptic" abbreviations unless you absolutely can remember what they represent, and... you will be the only person to EVER work on the site. Using descriptive names is useful to everyone working on a site, not just the CSS author.