Welcome to WebmasterWorld Guest from 54.205.60.49

Forum Moderators: not2easy

Message Too Old, No Replies

CSS in Dreamweaver

applying an ID to an element

   
8:47 pm on Apr 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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?
5:17 pm on Apr 9, 2002 (gmt 0)

10+ Year Member



Are you talking about something other than attaching your stylesheet then using the Text>CSS styles>select element method?
5:24 pm on Apr 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.
6:47 pm on Apr 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.

7:18 pm on Apr 9, 2002 (gmt 0)

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



The CSS Styles Window lets you apply classes to individual elements in WYSIWYG view, if I'm understanding the question properly.
7:34 pm on Apr 9, 2002 (gmt 0)

10+ Year Member



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.

7:44 pm on Apr 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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)
8:50 pm on Apr 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month