Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Vertically Aligning TextVertically Aligning Text
Previous
 
Next
New Post
7/15/2008 1:56 AM
 

Hi Folks

I'm setting up a site for a buddy to move to and I'm in the process of trying to set it up like his current site. I'm trying to go for as much xhtml compliancy as I can (I'm old, old, old school and xhtml is not my fortey) and the problem I'm running into I can't get some text to vertically align to the middle of an image. You can see the site I'm working on @ http://spirit.gmss.org and the original site @ http://www.spirit-tkd.com. I've tried using vertical-align: middle but that doesn't seem to be making a difference.

The code for the top section (if I can get that figured out I can figure out the problems later on I think) is as follows:

<div>
<div style="float: right"><img height="160" alt="kicks" width="220" src="/Portals/Spirit/SiteImages/kicks.jpg" /></div>
<p>At <strong>Spirit Taekwondo Academy</strong> our goal is to offer quality martial arts instruction to all who want to learn. Your goal may be to achieve a level of fitness, to build confidence or to experience the thrill of competition. Whatever the reason, you are invited to blend the body and mind in a study of the most exciting martial art offered anywhere.</p>
<div style="clear: both">&#160;</div></div>

 
New Post
7/15/2008 12:35 PM
 

I've temporarily adjusted it by using padding but it doesn't look right when the font widget is used so any suggestions would be appreciated.

 
New Post
7/15/2008 2:48 PM
 

Hi Mike,

Vertically centering text as you desire is still a little hacky, with inconsistent results between IE6/7 and more compliant browsers (mainly related to application of the display: table-cell directive, I believe).

There is a good write-up outlining your options here.  Since you'll likely be forced to rely on an annoying hack anyway, you might just want to go ahead and use a table.  I won’t tell anyone.

Of course, my skillset only deals peripherally with CSS and presentation, so others might offer more insight.  Nonetheless, hope this helps!

Brandon

 


Brandon Haynes
BrandonHaynes.org
 
New Post
7/15/2008 2:55 PM
 

That might work Brandon. I found another example that was similar but when I tried it the outcome was horrible in Firefox. I'll give this a shot when I get a chance this afternoon.

 
New Post
7/15/2008 11:30 PM
 

Nope that didin't work. I can get it to work in Firefox and the text vertically centered in IE but as soon as I add the image the IE version blows up.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Vertically Aligning TextVertically Aligning Text


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out