473,246 Members | 1,703 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,246 software developers and data experts.

How to float text around image

Hello,
What I would like is to float some text around the image where the text
starts align on the left or right of the image aligned to the top of the
image and then wrap around the image. I have tried using the .imgright
{float: right;} or .imgleft {float: left;} in my draft css. I have looked at
other suggestion on the net by using a span class but I am having problems
adding it to my <div class="contpara" now such luck.
Here is my draft css:

BODY {
BACKGROUND-IMAGE: url(graybg.gif); BACKGROUND-REPEAT: repeat-y;
BACKGROUND-COLOR: #ffffff
}
LI {
FONT-SIZE: 12px; COLOR: #0000cd; FONT-FAMILY: Georgia, "Times New Roman",
Times, serif; LIST-STYLE-TYPE: square
}
UL {
COLOR: #0000cd; LIST-STYLE-TYPE: square
}
..contpara {
FONT-SIZE: 12px; LINE-HEIGHT: 120%; FONT-FAMILY: Georgia, "Times New
Roman", Times, serif
}
H1 {
FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: #0000cd; FONT-FAMILY: Verdana,
Arial, Helvetica, sans-serif; LETTER-SPACING: 2px
}
A:link {
COLOR: #669999; TEXT-DECORATION: underline
}
A:visited {
COLOR: #999999; TEXT-DECORATION: underline
}
A:hover {
COLOR: #000000; TEXT-DECORATION: underline
}
A:active {
COLOR: #000000; TEXT-DECORATION: underline
}

..imgright {
float: right;
padding: 10px;
}

And then I added this to my draft.html
<div class="contpara">
<H1>test</H1>
<P><img src="tttest" width="100" height="100" class="imgright"
alt="test">Once test blah blah blah.</P>

Thanks for your help in the past
Jul 21 '05 #1
2 6140
in comp.infosystems.www.authoring.stylesheets, mike wrote:
Hello,
What I would like is to float some text around the image where the text
starts align on the left or right of the image aligned to the top of the
image and then wrap around the image. I have tried using the .imgright
{float: right;} or .imgleft {float: left;} in my draft css. I have looked at
other suggestion on the net by using a span class but I am having problems
adding it to my <div class="contpara" now such luck.
¨Your description does not make sence
Here is my draft css:

Snip of lots of irrelevant code I would need to change to get it work.
Thanks for your help in the past


Rather give URL. Or at least some code that makes some sence with some
description that makes sence.

Questions:
1. URL(s)
2. What is what you want to happen?
(3. If you get something work somehow, what change makes it not work?`)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #2
Possibly the page:
http://www.nsm88.com/articles/mossad...%20jailed.html
and its associated .css page will solve the problem for you.

I found that I had to add an extra <p> tag to get the text to line up
properly with the top of the image on

http://www.nsm88.com/articles/amsterdam_mosque.html

Both pages use the same very basic css page.
"Lauri Raittila" <la***@raittila.cjb.net> wrote in message
news:MP************************@news.individual.ne t...
in comp.infosystems.www.authoring.stylesheets, mike wrote:
Hello,
What I would like is to float some text around the image where the text starts align on the left or right of the image aligned to the top of the
image and then wrap around the image. I have tried using the .imgright
{float: right;} or .imgleft {float: left;} in my draft css. I have looked at other suggestion on the net by using a span class but I am having problems adding it to my <div class="contpara" now such luck.


¨Your description does not make sence
Here is my draft css:


Snip of lots of irrelevant code I would need to change to get it work.
Thanks for your help in the past


Rather give URL. Or at least some code that makes some sence with some
description that makes sence.

Questions:
1. URL(s)
2. What is what you want to happen?
(3. If you get something work somehow, what change makes it not work?`)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

Jul 21 '05 #3

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

Similar topics

2
by: Gustav Medler | last post by:
Css only offers float:right; and float:left; Is it possible, to center an image, floated around by text? Cross browser funcionality is needed for NS4.7, IE 5.x, Op 6.x, Moz 1.x, Konqu 3.x. I...
1
by: Aaron | last post by:
I'm using relative positioning to move a right-floated image 10px upwards.. Text wrapping around the image should go underneath it once it reaches the bottom of the image, yet it acts as if the...
4
by: Florian Brucker | last post by:
Hi! I've got a problem with float & clear. Take this example code: <div style=" width:100px; height:100px; background-color:#FF0000; float:left; margin:10px;"></div> <span...
9
by: steven | last post by:
Hi, I can float the image left or right so the text will float around it, but only if the top of the image is aligned with the start of the paragraph. I'd like the image be a little below that, so...
0
by: Paul E Collins | last post by:
Hello. I want to display a number of individual blocks of text. Each block has an associated image, which should be displayed on the right and aligned with the top of its block of text, i.e....
9
panachepad
by: panachepad | last post by:
I arrived here from a websearch that found this thread from your archives: http://www.thescripts.com/forum/thread97805.html It helped me to understand that I am on the right track, but I still have...
8
by: DarkSaturn | last post by:
Is there a method of using the CSS float command on images to contain itself within a single paragraph? The problem I'm running into is trying to use float images on a listing page, I have an...
6
by: battle.chris | last post by:
Hi all. Any advice appreciated - I'm floating an image right and the text to the left of the image is being forced down about 5px from the top of the containing area. You can see the issue...
27
by: GloStix | last post by:
WARNING VIDEO TAKES A WHILE TO LOAD http://screencast.com/t/BWQ6DNtsM I really don't know how to fix this other than putting another div. But I dont' exactly want to do that for every page....
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.