![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Let slip the dogs of war.
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
|
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?
__________________
. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
hi
Industry Role:
Join Date: Jun 2002
Posts: 16,731
|
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
__________________
M3Server - NATS Hosting |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Jul 2001
Location: Currently Incognito
Posts: 13,827
|
div container 100%
div float left 99% div float right 300px
__________________
![]() ![]() ![]() It's all disambiguation ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Registered User
Industry Role:
Join Date: May 2009
Location: Orange County, CA
Posts: 94
|
Here you go: hxxp://a.trendyname.org/examples/boxmodel/
Just view the source. |
![]() |
![]() ![]() ![]() ![]() ![]() |