HighDots Forums  

Re: Why does float:right cause a line break ?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Why does float:right cause a line break ? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Leipold
 
Posts: n/a

Default Re: Why does float:right cause a line break ? - 03-08-2005 , 03:59 AM






Hi,

leegold wrote:
Quote:
Why does float:right cause a line break? Try the code below. Is there a
fix? I want the link on the same line as the text. Thanks
You have to write it this way:

<td>
<span class=linkpos>
<a href=details. php?id=3&Type_view= detail&Type_Submit=&key_word= see
details</a>
</span>
Source for configuration management documents and drawings from many
projects. These are primarily engineering design documents. Each
Directorate must be searched separately...
</td>

The float has to be before the static element, otherwise your browser
does not recognize where to float...

Chris


Reply With Quote
  #2  
Old   
Evertjan.
 
Posts: n/a

Default Re: Why does float:right cause a line break ? - 03-08-2005 , 07:39 AM






Chris Leipold wrote on 08 mrt 2005 in
comp.infosystems.www.authoring.stylesheets:

Quote:
leegold wrote:
Why does float:right cause a line break? Try the code below. Is there a
fix? I want the link on the same line as the text. Thanks
You have to write it this way:

td
span class=linkpos
a href=details. php?id=3&Type_view= detail&Type_Submit=&key_word= see
details</a
/span
Source for configuration management documents and drawings from many
projects. These are primarily engineering design documents. Each
Directorate must be searched separately...
/td

The float has to be before the static element, otherwise your browser
does not recognize where to float...

Floating an inline element like <span> is illogical,
therefore browsers seem to change it to a block element.

Better use a <div>.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.