Yes, I know the rule :-) I was just curious why news1, news2 were defined as
individual IDs rather than a class of news as they would no doubt be
containing the same style of content?


 


"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Mark Henderson
To: CF-Talk
Sent: Wed Mar 14 22:26:42 2007
Subject: RE: CSS?

Mark Flewellen wrote:
> Hi Doug,
> 
> you have an extra closing div tag in your example and if you 
> remove the margin bottom of the banner the footer should 
> close up under the news like you wanted. Change the 
> margin-bottom to padding bottom and you should be in business.
> 

Yes, good spotting. That will teach me for cutting and pasting the HTML
only, and I didn't even see the bottom div til you mentioned it! The
extra closing div doesn't actually make any difference to the
margin-collapsing issue (IE is actually not too bad at *error
correction*) although validating your html is definitely the first place
to start in the debugging process if problems occur. Incidentally, IE6
on my win2k machine at home renders the same as all other browsers, so
it only seems to be IE on XP.

Then Doug followed up with:
> Thanks for the help. I removed the margin-bottom from the 
> banner id and then added margin-top to the mainNav, main and 
> news id's to push them away from the banner and it seems to 
> be working

If the layout were going to get extremely complicated or you had several
other elements that were being affected, it can sometimes pay to add
another wrapper div around those and apply the margin to that (although
currently in your case that's not necessary).

> To answer the question from Neil, I am using ID's 
> on all div due to the fact that there is only one occurrence 
> of those objects in the page. If there were multiple items 
> needing the same style properties, I would use class 
> selectors instead.
 
http://css-discuss.incutio.com/?page=ClassesVsIds

Mark

-- 
This message has been scanned for viruses and dangerous
content by ISPNZ's automated virus detection system,
and is believed to be clean.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272713
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to