WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > HTML & XHTML > Vertical align only SOME images?

Reply
  Thread Tools Display Modes
Old 5th April 12, 04:56 AM   #1
Gigzi
WLC Member
 
Join Date: Mar 2012
Posts: 10
Default Vertical align only SOME images?

I have a navigation that I used vertical align on. I want to keep it that way. However I have other images in the body that I don't want vertical aligned. I used this in the css.

img, span, a {
vertical-align: middle;
border: 0px;
}
Gigzi is offline   Reply With Quote
Old 5th April 12, 09:09 AM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: Vertical align only SOME images?

give the ones you don't want it on a classname that overrides your global rule.

By the way, you do realise that your ruleset (as posted) will apply to ALL images, ALL spans and ALL anchors in the document, that are in elements where vertical alignment will be applied.
chrishirst is offline   Reply With Quote
Old 5th April 12, 02:09 PM   #3
Gigzi
WLC Member
 
Join Date: Mar 2012
Posts: 10
Default Re: Vertical align only SOME images?

Quote:
Originally Posted by chrishirst View Post
give the ones you don't want it on a classname that overrides your global rule.

By the way, you do realise that your ruleset (as posted) will apply to ALL images, ALL spans and ALL anchors in the document, that are in elements where vertical alignment will be applied.
Yes I do realize that :T I'll try the class name thing.
Gigzi is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:18 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.