Topic: Vertical Center Image and Text (no tables) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21615" title="Pages that link to Topic: Vertical Center Image and Text (no tables)" rel="nofollow" >Topic: Vertical Center Image and Text (no tables)\

 
Author Thread
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

IP logged posted posted 05-01-2004 07:53 Edit Quote

Hi,
What is the easiest way to vertically center text next to an image without Tables? (might be a question for CSS).

(Pardon) crude representation follows
(Ignore ~, these space text to right for the representation)

|'''''''''''''''''''|
THIS
IMAGE~~~~~~~~this text
ON LEFT~~~~~~~vertically
COULD BE~~~~~~centered
ANY SIZE
'-------------'

(Edited by Karl on 04-30-2004 22:55)

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

IP logged posted posted 05-02-2004 03:38 Edit Quote

Karl:

Here are two examples of how to do this-

position text

The first example does not use CSS but will only work for a single line of text, not a paragraph.

The second example uses CSS and relative positioning.

BTW- I just though I'd warn you up front, the image on the example page is copywrited.....

(Edited by norm on 05-01-2004 18:39)

At0mic_PC
Bipolar (III) Inmate

From: Columbia MS USA
Insane since: Apr 2001

IP logged posted posted 05-02-2004 04:48 Edit Quote

CSS is the way to go man. www.csszengarden.com


The secret of life is honesty and fair dealing. If you can fake that, you've got it made. --Groucho Marx



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu