Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: CSS float vertically?

Thread Tools

Re: CSS float vertically?

Jukka K. Korpela
Posts: n/a
"Nico Schuyt" <(E-Mail Removed)> wrote:

> Is there a CSS solution that lets boxes float vertically?


> Like the float:left and float:right do it horizontally.

(Yes, in a fairly complicated way that crosses over many browser bugs.
Ever tried to float a list?)

> Why I ask? I want to display a box with text at the bottom for the
> visitors and on the top of the page for search bots.

It's usually best to state your _goal_ in the beginning (and write the
Subject line according to it) than to start from an assumed technical
solution and only thereafter, if ever, tell what you really want to
achieve. One reason to this is that the assumed solutions are usually
dead ends.

In this case, you might _possibly_ (depending on overall page structure
and design, which you told nothing about) be able to achieve the goal
by making the text absolutely positioned (at the start) and leaving a
corresponding top margin or top padding for the rest of the content.

On the other hand, why would the text be of primary importance to
search engines, if it is not that to human readers? It's really the
opposite move that sometimes makes sense: if you have a site navigation
menu at the start of each page, it would make much sense to put it last
in HTML markup (since it is rather irrelevant, even disturbing, to
search engine users) but use CSS positioning to make it appear visually
first. (And it would make even more sense to consider removing it or at
least putting it last every way, but I digress.)

Pages about Web authoring:

Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
float to string to float, with first float == second float Carsten Fuchs C++ 45 10-08-2009 09:47 AM
operator== (float, float) Jukka Lehtonen C++ 5 08-05-2004 08:28 AM
need code to convert float format to internal java float format which is kept in 4 bytes integer Andy Java 7 05-10-2004 09:26 PM
static_cast<float>(a) versus float(a) Jim West C++ 4 01-16-2004 12:36 PM
Re: float->byte->float is same with original float image. why float->ubyte->float is different??? bd C Programming 0 07-07-2003 12:09 AM