Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

A framed block next to a float
 

Daniel Déchelotte




quote this post edit post

IP Loged report this post

Old Post  01-19-05 - 05:20 PM  
Hi crowd,

Please have a look at this page, where I try to have a framed block next to
a floated one: http://yo.dan.free.fr/float_n_div.html

Above is the best result I got so far. Works in (decently recent) IE and
gecko-based browsers, unperfect in Opera. Below is what I try to avoid: the
border and the background of the grey block extend below the red square
(normal behaviour, but unpleasant one).

Does my trick fail in browsers I have not tested? Do you have a better
solution?

--
Daniel Déchelotte
http://yo.dan.free.fr/


Post Follow-Up to this message ]
Re: A framed block next to a float
 

Steve Pugh




quote this post edit post

IP Loged report this post

Old Post  01-19-05 - 05:20 PM  
Daniel Déchelotte <maitre_yodan@fr.club-internet.invalid> wrote:

>Please have a look at this page, where I try to have a framed block next to
>a floated one: http://yo.dan.free.fr/float_n_div.html
>
>Above is the best result I got so far. Works in (decently recent) IE and
>gecko-based browsers, unperfect in Opera. Below is what I try to avoid: the
>border and the background of the grey block extend below the red square
>(normal behaviour, but unpleasant one).
>
>Does my trick fail in browsers I have not tested? Do you have a better
>solution?

Why not just give the grey box a margin-left of slightly more than
10em?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie."  - The Doctor

Steve Pugh        <steve@pugh.net>        <http://steve.pugh.net/>


Post Follow-Up to this message ]
Re: A framed block next to a float
 

Daniel Déchelotte




quote this post edit post

IP Loged report this post

Old Post  01-19-05 - 05:20 PM  
Steve Pugh a écrit :

| Daniel Déchelotte <maitre_yodan@fr.club-internet.invalid> wrote:
|
| >Please have a look at this page, where I try to have a framed block next
| >to a floated one: http://yo.dan.free.fr/float_n_div.html
|
| Why not just give the grey box a margin-left of slightly more than
| 10em?

Because of the case where the text is big enough/the viewport is narrow
enough to let the framed box "spill" below the floated box.

--
Daniel Déchelotte
http://yo.dan.free.fr/


Post Follow-Up to this message ]
Re: A framed block next to a float
 

Daniel Déchelotte




quote this post edit post

IP Loged report this post

Old Post  01-26-05 - 09:28 AM  
Steve Pugh a écrit :

| Daniel Déchelotte <maitre_yodan@fr.club-internet.invalid> wrote:
|
| >Please have a look at this page, where I try to have a framed block next
| >to a floated one: http://yo.dan.free.fr/float_n_div.html
|
| Why not just give the grey box a margin-left of slightly more than
| 10em?

Because of the case where the text is big enough/the viewport is narrow
enough to let the framed box "spill" below the floated box.

--
Daniel Déchelotte
http://yo.dan.free.fr/


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 09:54 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top