HighDots Forums  

Cut and Pasting Code

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Cut and Pasting Code in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
howeaver
 
Posts: n/a

Default Cut and Pasting Code - 08-22-2008 , 10:14 AM






I have used one of the Dreaweaver CSS templates and would like to add a second
header immediately below the first (and resize it to fit my needs later).

Not being a pro in code, it seems to me that the simple solution should be to
go into the the Split view (design and code), double-click on the <div#header>,
and copy and paste the hi-lighted code. But nothing happens.

Am I missing something? Am I being stupid (I'm often quite good in that
department)? This is a timely issue, can somebody out there help me?


Reply With Quote
  #2  
Old   
SnakEyez02
 
Posts: n/a

Default Re: Cut and Pasting Code - 08-22-2008 , 10:52 AM






That would be invalid code if you just copy and paste a div with an ID. IDs in
CSS are unique and if you have more than one ID your page will not validate.
In order to make this work you will need to change the ID "header" to a class
and then change those DIVS to class="header" instead of ID="header". For the
CSS document, the # represents an ID, so change that to a . which defines a
class.

For a good quick tutorial on basic CSS check out the following link:

http://www.w3schools.com/css/



Reply With Quote
  #3  
Old   
howeaver
 
Posts: n/a

Default Re: Cut and Pasting Code - 08-22-2008 , 10:59 AM



Thank you--will get right on it!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.