WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > Need some div float help, please

Reply
  Thread Tools Display Modes
Old 28th December 13, 07:41 PM   #1
funmedusa
WLC Member
 
Join Date: Dec 2013
Posts: 2
Default Need some div float help, please

On this page: http://funmedusa.com

I am trying to get the 2 divs (#main-left and #main-right) to sit side by side and take up the entire screen. I have tried to override the css on the container these are in, and some other things, but I can not get this to happen.

I feel I am missing something simple here.

Please help if you can. Thanks!
funmedusa is offline   Reply With Quote
Old 28th December 13, 09:28 PM   #2
ronaldroe
WLC Lover
 
ronaldroe's Avatar
 
Join Date: Feb 2013
Posts: 197
Default Re: Need some div float help, please

The left margin on main-right is pushing it off to the next line. There's probably 100 ways to tell you to fix this, but I'm going to go with set the width of main right to:
Code:
width:calc(65% - 10px); /*NOTE: the spaces in the expression are important. It won't work without them*/
ronaldroe is offline   Reply With Quote
Old 29th December 13, 02:11 AM   #3
funmedusa
WLC Member
 
Join Date: Dec 2013
Posts: 2
Default Re: Need some div float help, please

Quote:
Originally Posted by ronaldroe View Post
The left margin on main-right is pushing it off to the next line. There's probably 100 ways to tell you to fix this, but I'm going to go with set the width of main right to:
Code:
width:calc(65% - 10px); /*NOTE: the spaces in the expression are important. It won't work without them*/
Thanks for the suggestion. I tried that, and it is still not happening for me at this point. Hmmmm....

Any other ideas?
funmedusa is offline   Reply With Quote
Old 29th December 13, 02:27 PM   #4
ronaldroe
WLC Lover
 
ronaldroe's Avatar
 
Join Date: Feb 2013
Posts: 197
Default Re: Need some div float help, please

Quote:
Originally Posted by funmedusa View Post
Thanks for the suggestion. I tried that, and it is still not happening for me at this point. Hmmmm....

Any other ideas?
IDK. When I tried it using dev tools, it worked like a charm. Could also use box-sizing:border-box;
ronaldroe is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

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

Forum Jump


All times are GMT. The time now is 01:14 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.