homepage Welcome to WebmasterWorld Guest from 23.22.2.150
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
CSS in Dreamweaver
applying an ID to an element
fashezee

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 155 posted 8:47 pm on Apr 8, 2002 (gmt 0)

Is there anyway of applying an ID to elements on a page within Dreamweaver; other then manually going into the code and adding it yourself?

 

hasbeen

10+ Year Member



 
Msg#: 155 posted 5:17 pm on Apr 9, 2002 (gmt 0)

Are you talking about something other than attaching your stylesheet then using the Text>CSS styles>select element method?

fashezee

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 155 posted 5:24 pm on Apr 9, 2002 (gmt 0)

When defining an ID within a CSS such as #topText:link (...). Once the ID has been defined, I would like to know if there is a way of applying the ID to some text other than going into the code and adding the ID attribute.

papabaer

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 155 posted 6:47 pm on Apr 9, 2002 (gmt 0)

Remember, an ID is a unique identifier, and will only have a single instance on a page.

Are you confusing ID's with .class perhaps? Since CSS classes can be applied to mupltiple elements I can understand why you might look for a shortcut... but in any event, you can still add your classes easily using DW's Tag Editor.

rogerd

WebmasterWorld Administrator rogerd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 155 posted 7:18 pm on Apr 9, 2002 (gmt 0)

The CSS Styles Window lets you apply classes to individual elements in WYSIWYG view, if I'm understanding the question properly.

msampson

10+ Year Member



 
Msg#: 155 posted 7:34 pm on Apr 9, 2002 (gmt 0)

no. i don't think there is.

if you're looking for a way to select (for example) a <div> and make it <div id=leftnav> without editing the code, i've never found it (and i just skimmed thru the help as well).

would be pleased to hear that i'm wrong tho.

fashezee

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 155 posted 7:44 pm on Apr 9, 2002 (gmt 0)

msampson- thats exactly what I meant. Dreamweaver lets you apply classes to any elements you wish, but as for applying an ID, it doesn't give you any method, even though your ID is properly defined in the style sheet??? (probably saving that feature for the next version)

papabaer

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 155 posted 8:50 pm on Apr 9, 2002 (gmt 0)

You can set the ID's for divs (and I believe tables) from the properties toolbar, or right click on the tag list display at the bottom of the editing window to access the Quick Tag Editor, beyond that, or perhaps before that, you can simply edit the code by hand.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved