- This topic is empty.
April 5, 2016 at 1:16 am #240231
div 1 = width:100%; background:grey;
div 2 = width:940px; background: grey;
div 3 = width:940px; background: white;
is there any option in css to expand the both sides? The “content” should be in center as width:940px and then I need to expand both sides to fit browser window.
if it is a 1440 screen then “content” = 940px and left & right side should be expand to 250px.
if it is a 1640 screen then “content” = 940px and left & right side should be expand to 350px.April 5, 2016 at 3:00 am #240233
Yes…but it depends on what it is you are trying to do.
What would be in the ‘side’ sections?
Why not have a containers that are 100% wide and then any centered inner divs that are needed to be max-940 wide can be added in
Something like this:April 5, 2016 at 3:28 am #240234
I have description tab with 940px. I want to change both sides to WHITE. if some one using a large screen than 940px.
Plz see the description tab (Product Description, Reviews, Shipping Info) here: https://goo.gl/AVmcXIApril 5, 2016 at 3:43 am #240235
I’m not clear on what it is you are trying to to here.
Both sides of what?
An image of how this is supposed to look would be helpful.April 5, 2016 at 4:01 am #240236April 5, 2016 at 4:43 am #240238
I’m not seeing a difference to be honest.April 5, 2016 at 4:50 am #240240April 5, 2016 at 5:00 am #240241
On closer examination I can see the difference. but this is a little more complex.
You would need to remove the widths from the various divs and then center the menu somehow.
- The forum ‘CSS’ is closed to new topics and replies.