Jump to content

<br clear=" left"> vs CSS


Recommended Posts

Hello to everyone,

 

I am facing a CSS layout problem which I find is best explained by looking at the problem itself:

 

http://www.swanseatimber.co.uk/shop/hardware/cat_100.html

 

I am floating the subCats element to left but it will not appear beneath the baseline of boxContent - the previously aligned element. I would rather make proper use of the CSS float property than the br clear left if possible?

 

Kind regards,

laanes

 

Link to comment
https://forums.phpfreaks.com/topic/216667-vs-css/
Share on other sites

maybe a

 

clear: both;      (on your .boxContent)

 

 

or maybe try a

 

top-margin: 60px;      (on your .subCats) adjust of course. Should push down eventually.

 

if those dont work

maybe try making your .subCats class a div ID rather than a class with the top margin added.  Let me know if any of this helps.

Peace,

Adam

Link to comment
https://forums.phpfreaks.com/topic/216667-vs-css/#findComment-1126140
Share on other sites

I am not sure how the above comments would help ;)

 

I dont know if I understand the problem fully, however you want subCats to display below boxContent?

 

Is so, why is subCats within your boxContent div? Can't you just move subCats?

 

Or if boxContent is meant to be a container then add overflow:hidden on boxContent.

 

Maybe if you could clear up what you are trying to do, then I might be able to help :)

 

 

Link to comment
https://forums.phpfreaks.com/topic/216667-vs-css/#findComment-1126187
Share on other sites

No problem, as for pushing it to the right, try pushing it over the same way you pushed it down.

 

by adding a

 

left-margin: 10px;

 

Of course keep the top-margin in there. Also I don't know how far you want it over to the right so tinker with the px value till your happy. If you like how it looks now Id just leave it.  :)

 

Link to comment
https://forums.phpfreaks.com/topic/216667-vs-css/#findComment-1126660
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.