473,325 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Mininum width

Hi i got the following Layout Css:
| | | |
| | | |
| box1 | box2 | box3 |
| | | |
| | | |
| | | |
----------------------
box 4
----------------------

body{
margin : 0px;
padding:100px;
}
..box1, .box2, .box3{
float:left;
width:33.3%;
height:400px;
margin:0;
padding:0;}

..box2{
width:350px;
}
..box4{
width:100%;
}

Now i want to get box2 with a fixed width of 250 px.
When i make it like that, the break for box 4 is gone away and box 4 starts in the same row.
Jul 21 '05 #1
2 1502
Wilhelm Kutting wrote:
Hi i got the following Layout Css:

| | |
| | |
box1 | box2 | box3 |
| | |
| | |
| | |

----------------------
box 4
----------------------

body{
margin : 0px;
padding:100px;
}
.box1, .box2, .box3{
float:left;
width:33.3%;
height:400px;
margin:0;
padding:0;}

.box2{
width:350px;
}
.box4{
width:100%;
}

Now i want to get box2 with a fixed width of 250 px.
When i make it like that, the break for box 4 is gone away and box 4
starts in the same row.


..box4 { clear:left; }

HTH
Markus
Jul 21 '05 #2
On Tue, 21 Dec 2004 12:26:17 +0100, Wilhelm Kutting
<wk******@arcor.de> wrote:

.box1, .box2, .box3{
float:left;
width:33.3%;
height:400px;
margin:0;
padding:0;}

.box2{
width:350px;
}
.box4{
width:100%;
}

Now i want to get box2 with a fixed width of 250 px.
When i make it like that, the break for box 4 is gone away and box 4 starts in the same row.


Add clear: left to the styles for box4.

Also consider giving your classes more descriptive names. What are
these boxes? Navigation? Logos? Advertising? Class names that reflect
the nature of the element are more useful in the long run.

Steve

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alex Shi | last post by:
In php, is there a way obtain the width of a charactor of a certain font? Alex -- ================================================== Cell Phone Batteries at 30-50%+ off retail prices!...
7
by: Graham J | last post by:
Apologies for the partial post that mysteriously escaped as I was composing. I shall try again. For many years I have been happily and successfully coding tables such that the WIDTH specified...
25
by: Sune A | last post by:
Hi All! I'm having problems with www.suneworld.com The thing is that I'd like to lock the width of the page, so that it won't adjust dynamically. Any CSS people out there that can help me? ...
2
by: Richard Clay | last post by:
It seems odd that there is (apparently) no way of telling the istream >> operator overloading for strings to NOT stop when it gets to the first space. What I want to do is this: string...
16
by: karlman | last post by:
I am trying to create a web page that shows a calendar schedules. I am attempting to use table cells with fixed widths and different colors to display this. It seems that IE6 doesn't always...
0
by: javaguy | last post by:
I have a table I hide show/hide through a pair of divs. The show/hide part works fine in both Mozilla and MSIE. When switching between the hide and show versions the Mozilla browser keeps them in...
2
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild,...
0
by: Syed Shahabuddin | last post by:
Hi all, please let me know the procedure for doing mininum rollfoward recovery using long talbespaces. We have db2 udb-8.1 system. on unix platforms. how do i do can do DDL on long...
4
by: lilOlMe | last post by:
Hi there! I'm developing a "scrollable table". At first I started using CSS. It worked pretty well until I found a bug that happens when placing this table into a tabbing control... So I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.