Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Float Left or Absolute Position?

 
Thread Tools Search this Thread
Old 05-23-2006, 03:28 PM   #1
Default Float Left or Absolute Position?


Hi,

Can I ask what could potentially a stupid question? I have a
navigation list set to the left in two ways:

Absolute Position:
http://www.pnc.com.au/~plstrong/

Float Left:
http://www.pnc.com.au/~plstrong/test

I have a feeling that the Float Left version keeps the flow of the
page better, maintaining a better logical structure than the absolute
position version. I also read the W3C guidelines, but was none the
wiser

http://www.w3.org/TR/CSS21/visuren.html

Are there any benefits or disadvantages to each method or am I
splitting hairs a little

Thanks for any advice,

Andrew.


sorry.no.email@post_NG.com
  Reply With Quote
Old 05-23-2006, 04:32 PM   #2
Andy Dingley
 
Posts: n/a
Default Re: Float Left or Absolute Position?


sorry.no.email@post_NG.com wrote:

> Are there any benefits or disadvantages to each method or am I
> splitting hairs a little


Absolute positioning is a work of Satan and your Immortal Soul is in
Dire Peril whenever you use it.

  Reply With Quote
Old 05-23-2006, 11:22 PM   #3
dorayme
 
Posts: n/a
Default Re: Float Left or Absolute Position?

In article <>,
sorry.no.email@post_NG.com wrote:

> Hi,
>
> Can I ask what could potentially a stupid question? I have a
> navigation list set to the left in two ways:
>
> Absolute Position:
> http://www.pnc.com.au/~plstrong/
>
> Float Left:
> http://www.pnc.com.au/~plstrong/test
>
> I have a feeling that the Float Left version keeps the flow of the
> page better, maintaining a better logical structure than the absolute
> position version. I also read the W3C guidelines, but was none the
> wiser
>
> http://www.w3.org/TR/CSS21/visuren.html
>
> Are there any benefits or disadvantages to each method or am I
> splitting hairs a little


One advantage is that you can put the absolutely positioned stuff
later in your html, enabling some folk and things (eg. search
engines) to get at your content "first". and the less immedietely
important stuff (navigation say, or a banner or whatever) later.

In your case, go with the float.

BTW, consider some em specs to divs and things (I have not looked
at your code but am guessing) so that when fonts are enlarged
they do not "jump the natural barriers".

--
dorayme
  Reply With Quote
Old 05-24-2006, 12:54 AM   #4
Neredbojias
 
Posts: n/a
Default Re: Float Left or Absolute Position?

To further the education of mankind, sorry.no.email@post_NG.com vouchsafed:

> Hi,
>
> Can I ask what could potentially a stupid question? I have a
> navigation list set to the left in two ways:
>
> Absolute Position:
> http://www.pnc.com.au/~plstrong/
>
> Float Left:
> http://www.pnc.com.au/~plstrong/test
>
> I have a feeling that the Float Left version keeps the flow of the
> page better, maintaining a better logical structure than the absolute
> position version. I also read the W3C guidelines, but was none the
> wiser
>
> http://www.w3.org/TR/CSS21/visuren.html
>
> Are there any benefits or disadvantages to each method or am I
> splitting hairs a little


Floats seem to be preferred by those who do not know how to do absolute
positioning correctly, and vice versa.

--
Neredbojias
Infinity has its limits.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump