By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,492 Members | 1,987 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,492 IT Pros & Developers. It's quick & easy.

Problem with Picture and Text solve with css

P: n/a
ich have following problem

on the left side i have an picture, an on the right side will be text.
the text is larger than the picture height, so the text continues under
the picture, how can i solve this problem with css. i can use a table
but i dont want to use any tables to design my page...
for now i use the float attribute, but this causes the give problem....

here the problem with example:

XXX = Picture
T = text

XXXXXX TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
XXXXXX TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
XXXXXX TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
XXXXXX TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTtTTTTTTTTT
TTTTTTTTTTTTTTTTTTTTTTTt
it should look like this

XXXXXX TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
XXXXXX TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
XXXXXX TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
XXXXXX TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTt
TTTTTTTTT

thanx
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Bjoern Wolter wrote:
on the left side i have an picture, an on the right side will be text.
the text is larger than the picture height, so the text continues under
the picture, how can i solve this problem with css.


Use left margin as big as image width for element you have text.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.