- This topic is empty.
-
AuthorPosts
-
February 16, 2010 at 7:20 pm #28035TheN00bParticipant
Hi Guys
I’m working on a site that will have bars running horizontal along the whole length of the page (kinda like that orange and bark brown bar at the top of CSS Tricks).
I started the website without them bars in mind, and once it had finished, I decided the site will look much nicer with the bars running the whole length of the page. So here I am attempting this, but I am stuck.
I don’t know how to get rid of my #wrapper div, yet have all the content centered. I’d greatly appreciate any help.
Thank You.
February 16, 2010 at 7:51 pm #71016tafkanatorParticipantIm not very sure what you are thinking but if I understand you want your bars as a background why not change the background in body tag in css?
February 16, 2010 at 8:13 pm #71018TheN00bParticipantHi Tafkanator
Plz check know, you’ll know Exactly what I mean ! See how all the content is to one side. I want everything to be in the middle like it is here on CSS Tricks.
Please help :(
February 16, 2010 at 9:16 pm #71024tafkanatorParticipantok. here is what i did. You still have to change code, place right widths, take my green background away and so on..
Code:
Kurdish Forum
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit
- 5 Comments
- |
- Bookmark this article
- |
- Posted on: 17 January 2010
Copyright © 2010 KurdWD. All rights reserved.
Short version of the change is: I created a div around sidebar and content div, gave fixed width and margin:0 auto. Because you used floats inside the div i cleared floats before the closing div. That easy! :)
February 16, 2010 at 9:26 pm #71030TheN00bParticipantHi
Thanks Tafkanator, I see you that you have placed a div starting just before the Sidebar and Ending after the content.
However, I think I will be right in saying this Div will not center the stuff in the header .. right ?
I mean like the search box, the logo, the navigation ..etc ! how would they get to the center ?
Thanks
February 16, 2010 at 9:34 pm #71032tafkanatorParticipantFebruary 17, 2010 at 10:07 am #71057TheN00bParticipantThanks Tafkanator
I was wondering … if that is the case, can’t I have just on wrapper div around the whole thing ? i.e. around the header, sidebar and content and footer ?
Wouldn’t that work ?
Thanks
February 17, 2010 at 11:10 am #71054TheN00bParticipantahh now it is clear.
Thanks :) I shall give it my BEST SHOT. :)
Will let you know how I got on.
Thanks Guys
February 17, 2010 at 11:59 am #71059TheN00bParticipantWoo Hoo Thanks Guys
It worked :D Thank You Soo Much :)
Now I have another issue, on photoshop the design is so that the Sidebar extends all the way to the bottom, to touch the footer.
How can I acheive this ?
Thank You.
February 17, 2010 at 8:41 pm #71074TheN00bParticipantanyone ?
February 18, 2010 at 5:20 pm #71125TheN00bParticipantHi Virtual
No it doesn’t ! I had set a specific height for it on the site, but as you can see if I make more posts, it does not extend ! :(
February 19, 2010 at 10:51 am #71173TheN00bParticipantHi Virtual
I’m using FireFox (3.6) here is a screenshot of what I got !
[img]http://i45.tinypic.com/mlk2sy.jpg[/img]
Thanks
February 19, 2010 at 12:20 pm #71200tafkanatorParticipantHi!
Sry for not posting sooner. Have been busy lately. Ill give quick guide how to do it. Dont use height attribute. Here is a hint of how to do it right. http://css-tricks.com/video-screencasts/5-columns-of-equal-height-super-simple-two-column-layout/
February 20, 2010 at 2:21 pm #71237TheN00bParticipantThanks Guys
That worked perfectly :)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.