Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-22-2009, 02:41 PM   #1
Horny Dude
Earn enough to buy coffee
 
Horny Dude's Avatar
 
Industry Role:
Join Date: May 2002
Location: San Diego, Ca.
Posts: 4,912
CSS Gurus: Have a question on text sizing?

Is there a way with CSS to keep my website font size the same? This way if someone comes to my site with their default font size set at 27, it will look the same as someone with their font size 16. I have tried using 'em' instead of 'px', but no luck. Any help would be great.
Horny Dude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 02:43 PM   #2
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
no - best you can do is prevent spacing issues with overflow:auto;
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 03:40 PM   #3
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
static sizes defined by px, relative by ems

good article on topic http://www.alistapart.com/articles/howtosizetextincss/
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 03:46 PM   #4
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
hrmmm... if you define it by actual pixels it wont change when a surfer ups their text size?

I thought i tried that once...

ill have to experiment again...
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 03:56 PM   #5
beta-tester
Rock 'n Roll Baby!
 
Join Date: Sep 2004
Location: USA, temporarly
Posts: 22,562
Just set the font-size in px instead of em and it'll be fixed to the size, no matter what's the default text size in surfer's browser.
__________________

Sig for sale. Affordable prices. Contact me and get a great deal ;)

My contact:
ICQ: 944-320-46
e-mail: manca {AT} HotFreeSex4All.com
beta-tester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 03:57 PM   #6
PSSuperstars
Confirmed User
 
Join Date: Jan 2006
Location: Houston, TX
Posts: 1,477
Can any of you recommend a good CSS for dummies book, por favor?
__________________
Porn's Best Kept Secret : PSOCash.com : Make Money Promoting Phone Sex in Members Areas, TGPs, and MORE! : Lifetime 30% Payout
Best Webcam Referral Payouts
PSSuperstars is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 04:16 PM   #7
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Quote:
Originally Posted by beta-tester View Post
Just set the font-size in px instead of em and it'll be fixed to the size, no matter what's the default text size in surfer's browser.
I swore i tested that before - apparently im mistaken... totally good to know, got a wrinkle in my brain


and PSS - just look through other sites and w3c has a lot of useful basic info...

no book, just research
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 09:11 PM   #8
devine
Confirmed User
 
devine's Avatar
 
Join Date: Jul 2006
Posts: 620
Code:
html{font-size:16px;}
and that's it
devine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 09:14 PM   #9
Young
Bland for life
 
Industry Role:
Join Date: Nov 2004
Posts: 10,468
Code:
* { font-size: 16px; }
Overkill for many...but that's how I'd take care of it.
__________________
★★★
Young is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 10:01 PM   #10
Tom_PM
Porn Meister
 
Industry Role:
Join Date: Feb 2005
Posts: 16,443
I thought you could use !important to help keep things an exact size.. even to override a browser with a modified text size.
__________________
43-922-863 Shut up and play your guitar.
Tom_PM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 10:08 PM   #11
pimplink
Confirmed User
 
Join Date: Jun 2001
Location: Closer than you think
Posts: 9,535
very helpful thread
__________________

Need Mainstream Content and SEO?
SEO * Website Copy * Blogs
Blogging - PR Work - Forum Marketing - Social Marketing - Link building - Articles
100% Guaranteed Content!
pimplink is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 10:15 PM   #12
Bored
Confirmed User
 
Bored's Avatar
 
Join Date: Feb 2002
Location: Canada
Posts: 1,011
Be aware, that some browsers don't ZOOM like they are supposed to. Its been a while, but I think it might be IE6 that uses its own zooming technique, different from the standard ctrl+-
__________________
If Satan Wore a Hairpeice, there would be HELL TOUPEE!!
HTML Porn
pbbc fo li
Bored is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 10:16 PM   #13
Bored
Confirmed User
 
Bored's Avatar
 
Join Date: Feb 2002
Location: Canada
Posts: 1,011
!important makes the CSS rule overrule any other CSS rule

div { color: red!important }
div { color: blue; }

in this case, it would take the red, keep in mind how specificity and the cascade works too
__________________
If Satan Wore a Hairpeice, there would be HELL TOUPEE!!
HTML Porn
pbbc fo li
Bored is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.