Jump to content
Stef's Coding Community
Sign in to follow this  
danhodge

Sidebar

Recommended Posts

Hey again guys :)

 

Okay, my problem is sidebars.

 

I have a sidebar, which i can fit into my website nicely, along with the header and nav bar.

 

My only issue now, is that i can't put any actual content into the website without it going in the wrong place.

 

So, i wondered, can this be achieved by playing around with the floats in the layers?

 

Thanks alot,

Danny

Share this post


Link to post
Share on other sites

I think you'll have to post a link to the page for us to be able to help you with this.

 

Personally, I'd really stay away from Dreamweaver's "Layers" if possible. They are just absolutely positioned divs, and I've found in the past that they tend to cause significant layout issues.

Share this post


Link to post
Share on other sites

I don't use dreamweaver, i cant afford it :L

 

And the link wont really help, all i really need to know is why float: left; for the sidebar and Float:left; for the content doesn't automatically align them :D

Share this post


Link to post
Share on other sites

The link would totally help - without it, pretty much what we can say for certain is it's not working because something is not right. Does that help? :D

Share this post


Link to post
Share on other sites

I think you are confusing two different methods for layout. You can layout columns using floats, or using floats/margins (where one column is placed within the left or right margin of another column) but you can't try to do both at the same time.

 

To fix this, you need to remove the margin-left from #content, and the negative left margin on the h1, and then adjust as necessary.

Share this post


Link to post
Share on other sites

Hmm, i didn't actually notice i had these margins still set... im terrible for trouble shooting, its definatly something i need to work on...

 

But thanks again :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...