homepage Welcome to WebmasterWorld Guest from 54.83.133.189
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
CSS in Dreamweaver
applying an ID to an element
fashezee




msg:1200400
 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




msg:1200401
 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




msg:1200402
 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




msg:1200403
 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




msg:1200404
 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




msg:1200405
 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




msg:1200406
 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




msg:1200407
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved