doctortim Posted March 31, 2009 Share Posted March 31, 2009 Hi guys setting up the layout div's for a new website. Essentially i have three divs that will act as columns. I want a central (centred) column of fixed width 1000px. and the left and right columns to scale their width according to the remaning screen width. The three columns currently sit inside an overall container div. Here is the code: HTML ... <div id="container"> <div id="left_header"></div> <div id="central_header"></div> <div id="right_header"></div> </div> and CSS ... body {margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; } #container {height:200px; width:100%;} #left_header {float:left; height:200px; width:100px; background-image: url(img/heading-left.png);background-repeat: repeat-x;background-position: left top;} #central_header {float:left; height:250px; width:1000px; background-image: url(img/main_header.png); background-position: left top;} #right_header {float:left; height:200px; width:100px; background-image: url(img/heading-right.png); background-repeat:repeat-x; background-position: left top;} Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/ Share on other sites More sharing options...
lonewolf217 Posted March 31, 2009 Share Posted March 31, 2009 this is a CSS problem, not PHP Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797436 Share on other sites More sharing options...
doctortim Posted March 31, 2009 Author Share Posted March 31, 2009 piss off! why waste your time writing that. I'm not joining a new forum to ask a simple question many people here will be able to help with in a minute of their time. Any genuine helpers please? Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797449 Share on other sites More sharing options...
lonewolf217 Posted March 31, 2009 Share Posted March 31, 2009 or you could have looked about 8 forums down and seen one called CSS Help http://www.phpfreaks.com/forums/index.php/board,5.0.html great attitude though Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797452 Share on other sites More sharing options...
Andy-H Posted March 31, 2009 Share Posted March 31, 2009 There is a CSS board on this forum, however, I think people tend to stray from helping arrogant wankers; perhaps joining another forum would be a good idea afterall... Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797453 Share on other sites More sharing options...
dadamssg Posted March 31, 2009 Share Posted March 31, 2009 really man...this forum is for php...stop wasting peoples time, besides...its freakin css, google that, not the hardest to figure out. or post it in a CSS or HTML forum, have some sense Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797454 Share on other sites More sharing options...
doctortim Posted March 31, 2009 Author Share Posted March 31, 2009 dadamssg you only waste your time when you write something like that ^ ... tool Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797463 Share on other sites More sharing options...
dennismonsewicz Posted March 31, 2009 Share Posted March 31, 2009 look up a fluid layout http://www.tjkdesign.com/articles/one_html_markup_many_css_layouts.asp Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797468 Share on other sites More sharing options...
Maq Posted March 31, 2009 Share Posted March 31, 2009 really man...this forum is for php...stop wasting peoples time, besides...its freakin css, google that, not the hardest to figure out. or post it in a CSS or HTML forum, have some sense Relax, we're here to help. If a thread is in the wrong section then click on the "report to a moderator" link and tell them which section to put it . Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797471 Share on other sites More sharing options...
dadamssg Posted March 31, 2009 Share Posted March 31, 2009 a little confrontation is fun haha.....go doctor up your pages timmy Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797472 Share on other sites More sharing options...
kenrbnsn Posted March 31, 2009 Share Posted March 31, 2009 Moving from PHP to CSS forum... Ken Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797506 Share on other sites More sharing options...
haku Posted March 31, 2009 Share Posted March 31, 2009 Well, what you have to do is set the wid.... oh wait. I'm not going to help someone so rude. Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797548 Share on other sites More sharing options...
doctortim Posted March 31, 2009 Author Share Posted March 31, 2009 Thank you Maq for some maturity. Haku, please take a deep breath and look back through this thread: I asked a question politely (probably in the wrong topic...sure, I get that part!) and all i needed to be told was the correct protocol for having my question answered - not to bluntly be reminded of the subject matter of the thread. Don't comment in my thread if you can't advance the discussion. Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797555 Share on other sites More sharing options...
haku Posted March 31, 2009 Share Posted March 31, 2009 I'll comment all I want. Don't be rude if you don't want comments such as mine directed at you. I read through the thread just fine. You were rude as hell. Which probably explains why you aren't getting any help. Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797559 Share on other sites More sharing options...
Maq Posted March 31, 2009 Share Posted March 31, 2009 Thank you Maq for some maturity. Haku, please take a deep breath and look back through this thread: I asked a question politely (probably in the wrong topic...sure, I get that part!) and all i needed to be told was the correct protocol for having my question answered - not to bluntly be reminded of the subject matter of the thread. Don't comment in my thread if you can't advance the discussion. Doctortim, haku is right. The reason you're not getting any help is because you are being rude and posted in the wrong section. You probably posted this in the PHP Help section because it has the most traffic, which is ignorant, and that's how you are treated. We're here to help, it's not like we get paid commission for every solution we provide... and all i needed to be told was the correct protocol for having my question answered Correct protocol? Isn't that quite obvious? You state your question (in the right section!), with enough information for people to help you, and wait for an answer. If someone is rude, which they really weren't, just ignore them. Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-797687 Share on other sites More sharing options...
TheFilmGod Posted April 1, 2009 Share Posted April 1, 2009 #container { overflow: auto; } This clears the floats. A quick search on google would be one million times faster than this forum. You would also avoid a deadly temper. Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-798359 Share on other sites More sharing options...
chmpdog Posted April 1, 2009 Share Posted April 1, 2009 this is funny... Almost as funny as *insert animal/mother figure/strategically designed code* Quote Link to comment https://forums.phpfreaks.com/topic/151857-simple-csshtml-layout-problem/#findComment-798370 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.