To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 4872
4871  |  4873
Subject: 
Re: 2 questions: 1 on HTML and 1 on Webcounters
Newsgroups: 
lugnet.publish
Date: 
Fri, 25 May 2007 19:51:43 GMT
Viewed: 
4812 times
  
In lugnet.publish, Erik Amzallag wrote:
Also, how do you center a piece of text between two images and have the text
centered at the middle center of the images, not at the top center?

By using the CSS property vertical-align:middle for your images

<img src="" alt="" style="vertical-align:middle" />text in the middle<img src=""
alt="" style="vertical-align:middle" />

Erik

Wouldn't you need a middle-centered div too? Like so.

<img src="" alt="" style="vertical-align:middle; float: left;" />
<div style="vertical-align:middle; float: left; width:40em;">text in the
middle</div>
<img src="" alt="" style="vertical-align:middle; float: left;" />

Tim



Message is in Reply To:
  Re: 2 questions: 1 on HTML and 1 on Webcounters
 
(...) By using the CSS property vertical-align:middle for your images <img src="" alt="" style="vertical-align:middle" />text in the middle<img src="" alt="" style="vertical-align:middle" /> Erik (17 years ago, 25-May-07, to lugnet.publish)

7 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR