SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Aligning text by an image
-
Dec 31, 2003, 14:24 #1
Aligning text by an image
I'm trying to get something like this:
######### ~~~~~~~~~
######### ~~~~~~~~~
######### ~~~~~~~~~
# I M A G E # ~~~~~~~~~
######### ~~~~~~~~~
######### ~~~~~~~~~
######### ~~~~~~~~~
Where the ~~~ is the text. I can only manage to get it to work like this:
######### ~~~~~~~~~
#########
#########
# I M A G E #
#########
#########
#########
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
I am using the CSS:
Code:#img4 {vertical-align: text-top;}
Code:#img4 {vertical-align: top;}
-
Dec 31, 2003, 14:32 #2
try floating the image to the left of the text...
#img4 {float: left;}Fast Fwd Multimedia
Web, IT & Cloud Computing Consultancy
Currently looking for web freelancers. Get in touch!
-
Dec 31, 2003, 14:44 #3
Perfecto, thank you.
-
Dec 31, 2003, 14:51 #4
np
Fast Fwd Multimedia
Web, IT & Cloud Computing Consultancy
Currently looking for web freelancers. Get in touch!
-
Dec 31, 2003, 15:02 #5
Can I do a float center? I did:
Code:display: block; margin-left: auto; margin-right: auto
-
Dec 31, 2003, 16:26 #6
- Join Date
- Jul 2002
- Location
- Toronto, Canada
- Posts
- 39,347
- Mentioned
- 63 Post(s)
- Tagged
- 3 Thread(s)
$5 and i'll tell you how to do it in IE
Bookmarks