Using CSS to positon text after an image
Posted
by
Charles L
on Stack Overflow
See other posts from Stack Overflow
or by Charles L
Published on 2012-11-24T17:02:15Z
Indexed on
2012/11/24
17:03 UTC
Read the original article
Hit count: 193
I've trying to do something that I'm sure is simple, but I can't do it.
All I want to do is have an image and then some text after that image, and be able to control accurately the amount of space between the image and the text.
Here's my code:
I couldn't work out how to paste it in here directly.
In my style sheet, wrap has these attributes:
.wrap {
//text-align: left;
width: 1100px;
height: 870px;
background-color: white;
color: black;
padding: 10px;
margin: auto;
I want my text to look like this directly below the image:
Username
Age
Location
Currently, I just add loads of break tags to control where I have the text, but that's messy and there must be a better way.
Thanks in advance for any help.
© Stack Overflow or respective owner