Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
possible to make Span tag equal size cross browser?
Old 05-11-2011, 12:57 AM possible to make Span tag equal size cross browser?
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Hi,

I am trying to make my span tags for my navigation menu align correctly in internet explorer as well as firefox. Just wondering if it's possible to adjust them for internet explorer users as wel whilest ok in firefox, IE needs the adjustmentl. I have it perfect in firefox, not IE. Maybe padding or margin adjustment would do it?

Thanks again!
-Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-11-2011, 02:50 AM Re: possible to make Span tag equal size cross browser?
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
IE8 still supports conditional comments. Put in a stylesheet link with just the IE fixes. Sucks we still have to do this, but oh, well.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 05-11-2011, 04:57 AM Re: possible to make Span tag equal size cross browser?
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
As far as I know span tags aren't (and shouldn't be) possible to align any way. Perhaps I'm wrong but to my understanding span tags is solely used for styling, not positioning. That is, you can adjust text color and size, make bold, italic etc. but not margin, position, float etc. If you need to adjust the position of something, put it in a div, not a span.
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 05-11-2011, 06:07 AM Re: possible to make Span tag equal size cross browser?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
spans are as wide as their content, so it is the difference in default font sizes.


Set
Code:
body {
      font-size: 63%;
}
Then specify ALL font sizes in ems rather than pixels (px) or points (pt) (which of course are meaningless for screen use)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-11-2011, 06:12 AM Re: possible to make Span tag equal size cross browser?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by lizciz View Post
As far as I know span tags aren't (and shouldn't be) possible to align any way. Perhaps I'm wrong but to my understanding span tags is solely used for styling, not positioning. That is, you can adjust text color and size, make bold, italic etc. but not margin, position, float etc. If you need to adjust the position of something, put it in a div, not a span.
You can position, float, set margins and padding etc on inline elements such as spans BUT you cannot set a width or height to them.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-17-2011, 03:14 PM Re: possible to make Span tag equal size cross browser?
Skilled Talker

Posts: 59
Name: Lisa Forgan
Location: Colorado
Trades: 0
Just curious, why are you using span tags? You could use divs and/or unorder list to get the effect you want.
Puddlemut is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to possible to make Span tag equal size cross browser?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30783 seconds with 12 queries