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/17/2008 11:15 AM
 

Hi Mike,

Since it seems to be just you and me on this thread, I'll see if I can work out a solution that is cross-browser friendly.  I'm out of town at the moment, so it's unlikely I'll be able to play much until next week.  Let me know if you beat me to a solution.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
7/18/2008 10:46 AM
 

I've been skinning XHTML now for 4+ years and this has always been an anoying one.

There are two choices here;

The column approach - put your image and text inside seperate div's, float:left; and set thier widths (percentatage totaling 100% is best). Then apply margin to the containing tags for vertical spacing. Don't forget to clear:both; after your column floats. 
Oh yes do watch out for overflow errors with IE (grrrr!), especialy IE6 this breaks columns due to incorrect calculations of widths, both padding and margins get included in the percentage calculations. This is best avoided by using percentages for your margin and padding as well as your widths... remember it all must equal 100%.

The absolute approach - place a position:relative; on your containing floated div and then use position:absolute; (with top and/or bottom, left and/or right set... this is required). This will position precisely from the edges of the containing div.

 
New Post
7/18/2008 11:47 AM
 

Thanks Matthew. I gave up and went with a table for that section of code. I'm using a widget that users can use to change the text size so I think absolute positioning would make it worse when the text size was changed.

 
New Post
7/18/2008 1:18 PM
 

boo hiss ... tables bad .
Absolute version *should* play nice with resizeable content (so long as you don't fix the width and hieght) as it pop's the tag out of the normal page flow. It can however introduce problems with other elements that use absolute positioned elements... menus or javascript popup code.
Why is it never as simple as it seems?

 
New Post
7/19/2008 11:38 AM
 

I know tables are bad that's why I was trying to get away from it  

I'll take another look at your post and play with it but I was in a time crunch to show my potential client that his site could be easily transfered over to DNN and how easily he could then edit things on his own rather than requesting his current web host to do it.

 
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