473,327 Members | 2,069 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,327 software developers and data experts.

float widths

Is in theory creating layout of two floats possible, where

the left "float:left" has fixed with
the right "float:left" extends to the right side of the browser window?
Jul 21 '05 #1
5 1868
On Tue, 19 Oct 2004 14:04:12 +0300, Marek Mänd <ca********@mail.ee> wrote:
Is in theory creating layout of two floats possible, where

the left "float:left" has fixed with
the right "float:left" extends to the right side of the browser window?


If the second element is to extend all the way across the browser window
why bother floating it at all? Why not just give it a margin-left
equivalent to the width of the first float?

#one {float: left; width: 20em;}
#two {margin-left: 20em;}

If you really want to float both of them then you'll need to specify the
widths in percentages:

#one {float: left; width: 20%;}
#two {float: left; width: 80%;}

(and watch out for the box model bugs)

Steve
Jul 21 '05 #2
Steve Pugh wrote:
On Tue, 19 Oct 2004 14:04:12 +0300, Marek Mänd <ca********@mail.ee> wrote:
If you really want to float both of them then you'll need to specify
the widths in percentages:
#one {float: left; width: 20%;}
#two {float: left; width: 80%;}
(and watch out for the box model bugs)


no possibility to use for example width:200px on #one ?
(very probably not and thatswhy table layouting is still the best )
Jul 21 '05 #3
On Tue, 19 Oct 2004 16:29:08 +0300, Marek Mänd <ca********@mail.ee> wrote:

no possibility to use for example width:200px on #one ?
Sure just change 20em in my first example to 200px.
Presumably, your first element only contains images and that's why a fixed
pixel width is desirable?
(very probably not and thatswhy table layouting is still the best )


Rubbish.

Steve

Jul 21 '05 #4
Marek Mänd <ca********@mail.ee> wrote in message news:<2t*************@uni-berlin.de>...
Is in theory creating layout of two floats possible, where

the left "float:left" has fixed with
the right "float:left" extends to the right side of the browser window?


most browsers will not be happy with this, but there are many
alternatives to achieve the same effect, e.g. making the right div
absolute with its "left" attribute chosen properly, or relative with
"padding" chosen properly. I think both will work.

Tony
Jul 21 '05 #5
Marek Mänd wrote:
no possibility to use for example width:200px on #one ? (very
probably not and thatswhy table layouting is still the best )


That's the second time you've made this silly claim, apparently based
only on your inability to create css layouts.

I'm starting to wonder if you're just trolling for a fight on CSS v.
table layouts. Why not just simulate an argument by reading the
archives? It's been debated to death, and I imagine most of the regulars
don't care to rehast the debate.

--
Brian (remove "invalid" to email me)
Jul 21 '05 #6

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

Similar topics

11
by: Jeff Thies | last post by:
I have a series of blocks that are float left that I need centered on the page. <div class="center" align="center"> <div style="width: 100 px;float: left">thumbnail 1</div> <div style="width:...
4
by: Aaron Robson | last post by:
Hi about 1% of my clients use macs, and I've spent an inordinate amount of time trying to get things working on them... I've validated my html and css - the html has 5 errors (strict), all due to...
5
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/BeallSprings/WC.Deed%20GG.116-17.html using the CSS at http://pages.prodigy.net/chris_beall/BeallSprings/BSstyle.css The page is a transcript of a...
16
by: Wolfgang Meier | last post by:
Hi, Although it might seem like I am firing out random posts in quick succession this matter is indeed one I thought about for quite some time without coming to a conclusion: Why is it that...
20
by: Joe exCSSive | last post by:
Hi, folks: I'm back...and now I'm really stuck !! I have a graphic ( http://www.sundialontario.com/images/makeitatable.jpg ) that I would like to convert to CSS and I'm not sure how to do...
2
by: krsgoss | last post by:
I'm trying to do a two column "form" layout based on article here: http://www.alistapart.com/stories/practicalcss/ The idea is to have a label, and a value using definition list markup. I...
2
by: Midsomer | last post by:
Hi. I have an Access database with a form containing 4 datasheets and I allow the user to change column widths. On closing the form, a routine is fired that saves each column width to an INI file....
6
by: Ira Gladnick | last post by:
The following displays as expected in IE7 (div2 floats to the right of div1). But in Firefox, div2 appears below div1. Why exactly does this happen in Firefox, and how to make it work as...
2
by: James Harris | last post by:
I'm trying to make sense of the standard C data sizes for floating point numbers. I guess the standards were written to accommodate some particular floating point engines that were popular at one...
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...
0
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...
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: 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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.