473,395 Members | 1,986 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

div inside div with text

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.

Jan 27 '06 #1
3 8383
F.N. wrote:
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.
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;

Jan 27 '06 #2
F.N. wrote:
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.
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;

Jan 27 '06 #3
Thank you Tony, It works very good.

Next time I'll post the code.
Regards,
J. Alberto
F.N.

Jan 30 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Dino Buljubasic | last post by:
Hi, I'd like to be able to enter only letters in my text box. If a user enters anything except a letter, the key entered would simply not be displayed in the text box.j How can I do ;that? ...
4
by: Anon | last post by:
Hello All! I have a long string that I need to make sense out of. I have the documentation about what info is between which characters, I just need to somehow parse each 94 character string into...
4
by: Andreas Borutta | last post by:
Hi, what is the task with which I could not cope? There is a link with an inline-element (strong e.g.) inside. It has a higher font-size than the content of its parent. For the hover effect...
16
by: rite2vinoth | last post by:
HI I want to display the contents of a big XML inside a text area so that the user would be able to edit it. But the XML consists of characters such as &amp; &quot; which are interpreted by as & and "...
1
by: neveen | last post by:
i want to open and read text file using j2me that can run on mobile 6630 then i want to make button called read that when pressed the data inside text display
1
by: buntyindia | last post by:
Hi , I am exporting files from my application. Files those are not supposed to be exported are of two types : 1.) Blank with Zero bytes 2.) Other one is in a format # #Mon Aug 13 14:33:02...
1
by: amulyab | last post by:
Hi, M using browse button to select a text file.The contents of text is made to display inside text area.Now i have to add some links for the some parts of text which is inside text area.How can i...
1
by: amulyab | last post by:
Hi, M using browse button to select a text file.The contents of text is made to display inside text area.Now i have to add some links for the some parts of text which is inside text area.How can i...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
2
by: slao | last post by:
I want to display the output of PHP echo statement on the browser. The result is output of htmlentities() function of PHP. $str = "A 'quote' is <b>bold</b>"; // Expected Outputs: A 'quote' is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.