|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 206 Joined: 14-March 06 From: Vermont or Boston (USA) Member No.: 20,077 myCENT:54.10 |
Post
#1
Jan 15 2007, 03:45 AM
I'm looking for a way to stop firefox from resizing text that I define in px. Is this at all possible, or am I just S.O.L.? The reason why I want this is because I'd like to use links for my nav menu, with a specific background behind it. As such, I don't want the text to be able be enlarged passed the height of the background. If this isn't doable I can always just use images for the nav links...but this site is starting to get pretty image heavy as it is, so i'd like to do it the other way if at all possible. Thanks. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 6,942 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() myCENT:9.20 |
Post
#2
Jan 15 2007, 03:55 AM
I would check this link at wcschools http://www.w3schools.com/css/pr_font_font-size.asp then try out the different properties and see what you can get. Also instead of px try em you usually get better results then px. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 206 Joined: 14-March 06 From: Vermont or Boston (USA) Member No.: 20,077 myCENT:54.10 |
Post
#3
Jan 15 2007, 04:05 AM
Sorry Michael, I don't think you quite understood what I'm asking. I've been using em in most places in my site--but for the navigation menu I want the text to be a fixed size (so it doesn't outgrow the menu background behind it). I was under the impression that px was supposed to be the last fixed width for text still available, but evidently firefox doesn't honor that (weird. It's usually Internet explorer which doesn't honor standards). |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 6,942 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() myCENT:9.20 |
Post
#4
Jan 15 2007, 04:10 AM
Oh I think I know what your talking, ie. fluid website when you shrink your browser your website adjust to it? Hmm I don't know anything off the top of my head about making liquid text. Just made a search on google came up with one result close enough and the one post said no unless you javascript of some sorts. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Admin
Posts: 3,696 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 myCENT:19.60 |
Post
#5
Jan 15 2007, 04:30 AM
QUOTE(gaea @ Jan 14 2007, 11:05 PM) [snapback]304058[/snapback] ...but evidently firefox doesn't honor that (weird. It's usually Internet explorer which doesn't honor standards). Another prime example of Software giants at war to declare whose the winner... The quick solution is to make your menu out of graphics (pictures) or use flash menu. Since picture width is fixed browser cannot "magnify" the size. Flash is harder to make (but there are many free quick flash menu makers out there) and they both server the same purpose--client side cannot alter the outcome. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [MODERATOR]
Posts: 4,437 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() myCENT:12.90 |
Post
#6
Jan 15 2007, 04:31 AM
em's will change with the screen size and the font-size, too, so that won't work any better. What I would try is to set the font attributes in a class and then use the "!important" feature in the css to have the author's css file over-ride the cascade. The only thing which should over-ride this is an "!important" feature on the user's css file. What I don't know is whether the zoom in/out affects the user's css file or not. Might be worth a try. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 206 Joined: 14-March 06 From: Vermont or Boston (USA) Member No.: 20,077 myCENT:54.10 |
Post
#7
Jan 15 2007, 06:34 AM
The !important idea sounded good, but it unfortunatly didn't work. I figured out a way to fix my problem though: A set of three <spans>. The top one contains the top piece of the menu graphic. The middle one just employs a simple color background--so it's free to enlarge and shrink with the text. And the third span is for the bottom piece of the graphic. Html and programming puzzles are kinda like mindgames sometimes. |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
4 | noxit | 616 | 19th June 2004 - 05:45 PM Last post by: OpaQue |
|||
![]() |
3 | Plenoptic | 582 | 17th July 2006 - 12:06 PM Last post by: Plenoptic |
|||
![]() |
6 | Dagoth Nereviar | 1,161 | 11th March 2007 - 11:38 PM Last post by: jlhaslip |
|||
![]() |
100 | googlue | 5,392 | 2nd March 2008 - 01:11 PM Last post by: arnz |
|||
![]() |
4 | electriic ink | 630 | 25th July 2006 - 07:28 PM Last post by: electriic ink |
|||
![]() |
7 | -Cooper_NFFC- | 550 | 11th October 2004 - 05:52 AM Last post by: ashiezai |
|||
![]() |
4 | hansley | 469 | 6th November 2004 - 11:03 PM Last post by: ronin |
|||
![]() |
7 | alex1985 | 340 | 12th June 2008 - 08:09 AM Last post by: alex1985 |
|||
![]() |
1 | Vikash | 665 | 25th November 2004 - 04:29 PM Last post by: serverph |
|||
![]() |
5 | mirage | 1,887 | 14th November 2005 - 12:54 AM Last post by: azoundria |
|||
![]() |
2 | lloydg | 1,205 | 5th August 2007 - 09:55 PM Last post by: dre |
|||
![]() |
8 | kvarnerexpress | 1,055 | 19th October 2005 - 01:00 AM Last post by: dul |
|||
![]() |
0 | kvarnerexpress | 753 | 29th December 2004 - 12:42 PM Last post by: kvarnerexpress |
|||
![]() |
3 | shadow skazi | 604 | 29th January 2005 - 10:26 PM Last post by: whyme |
|||
![]() |
8 | Bash | 1,400 | 20th February 2005 - 07:08 PM Last post by: theoutlaws |
|||
|
Open Discussion | Time is now: 10th January 2009 - 12:28 AM |