GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Question about .css (https://gfy.com/showthread.php?t=914820)

WarChild 07-08-2009 11:37 AM

Question about .css
 
So I'm no designer but I'm trying to fix some little details that a designer messed up before dissapearing.

Here's my question. If inside a container div there are two other divs that appear inline how the hell do you make one grow and shrink dynamically while the other stays the same size?

I have two sections of a website side by side. On the right is the advertising section and let's say it should be 300 pixels. What's the correct way to specify the width for the content section so that it can grow and shrink relative to the user's screen size?

JamesK 07-08-2009 11:39 AM

you can set a percentage based width for the outer div and the advertising section can be 300 pixels and "float" on a side of the outer div

TheDoc 07-08-2009 11:39 AM

div container 100%

div float left 99%

div float right 300px

cLin 07-08-2009 12:29 PM

Here you go: hxxp://a.trendyname.org/examples/boxmodel/

Just view the source.


All times are GMT -7. The time now is 04:15 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123