Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Float: right causing horizontal scrollbars in IE7 2

Status
Not open for further replies.

ca8msm

Programmer
May 9, 2002
11,327
GB
Can anyone see why the page here has horizontal scrollbars in IE7 (it doesn't in FireFox).

In my CSS file, if I remove the float:right from the following declaration, the problem goes away, however I want that section floated to the right!
Code:
#headAddress {float: right;font-size: 80%;padding:0 20px 5px 0;}

Thanks,
Mark


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
nvm u did post a link to your site... sorry about that... will look at it in a bit
 
I don't think it's a problem with clearing (although I could be wrong!) as the items underneath are cleared fine in both browsers. The problem is just that IE7 seems to create extra width for the page even though the elements are positioned how I want them.


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
[tt]address[/tt] tag. It's pretty sad when IE penalizes you for using little known but appropriate tags. I suggest you get rid of it to please IE.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Sorry, I take that back - I must have been looking at a cached version.

That's an annoying bug but I'm glad you knew that as I was struggling to find out what I'd done wrong.




------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
Actually, this brings up I question. According to w3:
w3 said:
The address element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element often appears at the beginning or end of a document.
I was using the <address> element to show the client's address, not an address to be used for contacting someone in regards to the document itself. Do you think I was using it incorrectly or is it just down to how you interpret the above statement?


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top