HighDots Forums  

div inside div with text

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


Discuss div inside div with text in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
F.N.
 
Posts: n/a

Default div inside div with text - 01-27-2006 , 10:03 AM






Hi, I canīt find the right CSS for this design:

http://www.geocities.com/josealberto...v_20060127.png

It's one DIV frame inside another one (DIV) but it's ok how I created,
the problem is the text, when I tried to include text paragraph
(without <p>) the inside DIV began to low and float:right doesn`t work.
How could I do?


Note: the inside DIV will include tables with php news, search form and
more. It`s like that because visibility:visible could be hidden when I
want (with PHP), so I can set visibility:hidden (or another way) in
case I decide.


Regards,
J. Alberto
F.N.


Reply With Quote
  #2  
Old   
Tony
 
Posts: n/a

Default Re: div inside div with text - 01-27-2006 , 12:22 PM






F.N. wrote:
Quote:
Hi, I canīt find the right CSS for this design:

http://www.geocities.com/josealberto...v_20060127.png

It's one DIV frame inside another one (DIV) but it's ok how I created,
the problem is the text, when I tried to include text paragraph
(without <p>) the inside DIV began to low and float:right doesn`t work.
How could I do?
Probably better to post code rather than screenshots.

You probably have the right-floated div after the text:

<div>
Text here
<div style="float:right">
contents here
</div>
</div>

Try moving the floated div to BEFORE the text:

<div>
<div style="float:right">
contents here
</div>
Text here
</div>

If I'm understanding you correctly, that will have the result you want.

Quote:
Note: the inside DIV will include tables with php news, search form and
more. It`s like that because visibility:visible could be hidden when I
want (with PHP), so I can set visibility:hidden (or another way) in
case I decide.
visibility: hidden will make the DIV not show up, but it will still
take up space. To have it not show AND not take up space, use
display:none;



Reply With Quote
  #3  
Old   
Tony
 
Posts: n/a

Default Re: div inside div with text - 01-27-2006 , 12:23 PM



F.N. wrote:
Quote:
Hi, I canīt find the right CSS for this design:

http://www.geocities.com/josealberto...v_20060127.png

It's one DIV frame inside another one (DIV) but it's ok how I created,
the problem is the text, when I tried to include text paragraph
(without <p>) the inside DIV began to low and float:right doesn`t work.
How could I do?
Probably better to post code rather than screenshots.

You probably have the right-floated div after the text:

<div>
Text here
<div style="float:right">
contents here
</div>
</div>

Try moving the floated div to BEFORE the text:

<div>
<div style="float:right">
contents here
</div>
Text here
</div>

If I'm understanding you correctly, that will have the result you want.

Quote:
Note: the inside DIV will include tables with php news, search form and
more. It`s like that because visibility:visible could be hidden when I
want (with PHP), so I can set visibility:hidden (or another way) in
case I decide.
visibility: hidden will make the DIV not show up, but it will still
take up space. To have it not show AND not take up space, use
display:none;



Reply With Quote
  #4  
Old   
F.N.
 
Posts: n/a

Default Re: div inside div with text - 01-30-2006 , 08:54 AM



Thank you Tony, It works very good.

Next time I'll post the code.


Regards,
J. Alberto
F.N.


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.