473,505 Members | 13,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trouble with float

On the page:

http://firasd.org/temp/faq.html

How would I make the picture contain itself in the first grey <div>?
Basically, nudge it up and make the "This FAQ is compiled voluntarily
...." text wrap to its left?

In case someone wants to see the structure visually:
http://firasd.org/temp/outlined.gif

Jul 20 '05 #1
2 1715
On Fri, 23 Jan 2004 17:29:43 -0500, Firas D. <fd********@firasd.org> wrote:
On the page:

http://firasd.org/temp/faq.html

How would I make the picture contain itself in the first grey <div>?
Basically, nudge it up and make the "This FAQ is compiled voluntarily
..." text wrap to its left?

In case someone wants to see the structure visually:
http://firasd.org/temp/outlined.gif


Simplest way - put the img before the text.

<div class="note">
<div style="float: right"><img src="maestropic.png" alt=""></div>
<p>This FAQ is compiled ...
Jul 20 '05 #2
Firas D. wrote:
On the page:

http://firasd.org/temp/faq.html

How would I make the picture contain itself in the first grey <div>?
Basically, nudge it up
float the image before the text; the image div moves right...
and make the "This FAQ is compiled voluntarily ..." text wrap to its
left?


....& the following text flows into the gap.

However this won't make the div contain the image if the image remains
taller than the flowed text. See
http://www.complexspiral.com/publica...aining-floats/

To overcome this problem, you need an object following the text which is
forced to clear the preceeding floated image & will remain in the div
boundary (or you can make the parent div itself floated, as floats do
expand to contain floats).

I thought the following should work, but it doesn't. Leastways, it seems
to in Mozilla, but in IE6 the paragraph texts vanish. Probably me being
stupid. Hopefully you'll get a more helpful answer shortly.

<div class="note">
<div style="float: right"><img src="maestropic.png" alt=""></div>
<p>[snip text]</p>
<p>[snip text]</p>
<hr style="display: block; clear: right; visibility: hidden; margin:
-0.2em 0;" />
</div>

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 20 '05 #3

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

Similar topics

7
11000
by: csumner | last post by:
I am trying to use the haversine function to find the distance between two points on a sphere, specifically two zip codes in my database. I'm neither horribly familiar with SQL syntax nor math...
7
4203
by: laclac01 | last post by:
So I am converting some matlab code to C++. I am stuck at one part of the code. The matlab code uses fread() to read in to a vector a file. It's a binary file. The vector is made up of floats,...
6
1765
by: bas | last post by:
hey, I am having a lot of trouble trying to get this program to work properly. It is supposed to read integers from a file and place them into the categories for inventory. The problem seems to...
14
2705
by: Peter Mount | last post by:
Hello I'm having trouble with " scanf("%c", &answer);" on line 20 below. When I run the program in cygwin on Windows 98SE it skips that line completely and ends the program. Does scanf have...
4
1798
by: jdcrief | last post by:
Using Visual C++2005 Expression Edition Having trouble outputting the value referenced by the pointer and then outputing the address of the pointer for the char. Any ideas would be greatly...
31
14422
by: tophandasa | last post by:
Hi all, I'm having a trouble reading a binary file as float values.I have to read the data in binary mode, then read every four bytes into a float variable. I have done my search, but i found out...
0
3139
Screaming Eagle
by: Screaming Eagle | last post by:
Ok, so some associates and I are building a website, and I'm in charge of the design and layout. I've decided to go with a simple navigation bar on top contained in its own div. Under the navigation...
30
3996
by: copx | last post by:
I am writing a program which uses sqrt() a lot. A historically very slow function but I read on CPUs with SSE support this is actually fast. Problem: C's sqrt() (unlike C++ sqrt()) is defined to...
9
2037
by: itdevries | last post by:
Hi, I've ran into some trouble with an overloaded + operator, maybe someone can give me some hints what to look out for. I've got my own custom vector class, as a part of that I've overloaded...
5
13304
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
7213
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
7098
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
7366
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...
1
7017
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
7471
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...
0
4698
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...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
406
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...

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.