473,597 Members | 2,392 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 8388
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
1304
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
1261
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
2959
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
4368
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
8784
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
1803
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
4466
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
1472
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
10746
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
1493
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
7883
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8263
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8379
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8021
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
8254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5842
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
3917
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2393
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
0
1226
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.