473,738 Members | 8,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:visi ble could be hidden when I
want (with PHP), so I can set visibility:hidd en (or another way) in
case I decide.
Regards,
J. Alberto
F.N.

Jan 27 '06 #1
3 8393
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:ri ght">
contents here
</div>
</div>

Try moving the floated div to BEFORE the text:

<div>
<div style="float:ri ght">
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:visi ble could be hidden when I
want (with PHP), so I can set visibility:hidd en (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:ri ght">
contents here
</div>
</div>

Try moving the floated div to BEFORE the text:

<div>
<div style="float:ri ght">
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:visi ble could be hidden when I
want (with PHP), so I can set visibility:hidd en (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
1312
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? Thank you
4
1269
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 it's own section and from there be able to identify what info is in positions 8-11 or 12-24 etc... Any thoughts? TIA
4
2962
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 I prefer an inverse styling. Hovering should just cover the link and not his parent (li e.g.).
16
4414
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 " respectively. But if this going to be the case the backend systems could not read them. I used <xmp>, but it is already deprecated and further it would not work inside text area. Could somebody help me with this. in short : &amp; should be displayed...
1
8797
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
1807
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 IST 2007
1
4479
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 do this?Please help me.
1
1483
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 do this?Please help me.Is there any way to do in ajax or javascript.
0
10774
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 inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
2
1496
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 &lt;b&gt;bold&lt;/b&gt; echo "<textarea>".htmlentities($str)."</textarea>"; // Expected Outputs: A 'quote' is &lt;b&gt;bold&lt;/b&gt;
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9263
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.