Welcome to WebmasterWorld Guest from 54.144.36.228

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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 12, 2002
posts:1141
votes: 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?
5:17 pm on Apr 9, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 11, 2001
posts:191
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 12, 2002
posts:1141
votes: 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.
6:47 pm on Apr 9, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 31, 2001
posts:1238
votes: 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.

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

Administrator

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

joined:Aug 2, 2000
posts:9687
votes: 0


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)

New User

10+ Year Member

joined:Feb 24, 2002
posts:24
votes: 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.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 12, 2002
posts:1141
votes: 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)
8:50 pm on Apr 9, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 31, 2001
posts:1238
votes: 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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members