<hr /> and clear:left

This is a discussion on "<hr /> and clear:left" within the Web Page Design section. This forum, and the thread "<hr /> and clear:left are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 12th, 2005, 14:20
New Member
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
<hr /> and clear:left

http://www.krakatoa.it/ot/dev.htm

This page is made of 3 blocks, left, right and middle.
The middle box is again divided in 2 blocks, where the left part is the content one.
The problem is that here, after the news titles and text, the <hr /> should go below the picture. So I gave it a clear:left, but this cancels all the floats to its left, so that the <hr /> goes down to the end of the left box, that is:

http://www.krakatoa.it/ot/dev2.htm

What can I do with this layout???
Please help me!!!
Reply With Quote

  #2 (permalink)  
Old Dec 12th, 2005, 21:31
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <hr /> and clear:left

The second one works fine, i'm not realy sure what the problem is :S
Reply With Quote
  #3 (permalink)  
Old Dec 13th, 2005, 07:07
New Member
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <hr /> and clear:left

No it does not!
Can't you see that the second <hr /> goes down to the end of the left menu, leaving a blank space?
Reply With Quote
  #4 (permalink)  
Old Dec 13th, 2005, 19:13
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <hr /> and clear:left

No, I cannot, there is no HR at the end of the left menu
Reply With Quote
  #5 (permalink)  
Old Dec 13th, 2005, 19:31
New Member
Join Date: Dec 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <hr /> and clear:left

Look here:
http://www.krakatoa.it/ot/as_is.jpg
There should not be all that red space!

This is how it should be:
http://www.krakatoa.it/ot/as_should_be.jpg

Anyway I already found the solution.
I nested a div with a float:left inside the content_left div and it works great!
Reply With Quote
  #6 (permalink)  
Old Dec 22nd, 2005, 11:34
drd drd is offline
SuperMember

SuperMember
Join Date: Dec 2005
Location: Hampshire, England, UK
Age: 28
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Re: <hr /> and clear:left

You have to be very careful when styling the <hr /> tag, IE uses different properties to the other browsers, so to get the colour the same across different browsers you have to specify both background-color and color as the same value:

Code: Select all
hr { margin: 10px 0px; height: 1px; background: #444; color: #444 }
I've had more luck specifying margins to control the position of the hr rather than floating it as Opera tended to display it differently to other browsers if I floated the hr.

I hope that helps.

EDIT: Arrrrgh only just noticed you already found a solution. Good work.
Reply With Quote
Reply

Tags
lthr, clearleft

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
session in not clear after logout uday Other Programming Languages 0 Mar 3rd, 2008 05:45
[SOLVED] Clear:both does not works in IE6 attila001122 Web Page Design 10 Dec 30th, 2007 14:43
Clear Skin Guide dbguide Free Web Site Critique 16 Dec 14th, 2007 17:49
all clear ltd littlebilly Free Web Site Critique 9 Aug 7th, 2007 21:50
Just wanted to clear this up Accurax Webforumz Cafe 7 Dec 7th, 2006 20:46


All times are GMT. The time now is 13:11.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43