Way To Stop Ff From Resizing Px Based Text? - Is there any way to stop firefox from resizing pixel based text?

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Way To Stop Ff From Resizing Px Based Text? - Is there any way to stop firefox from resizing pixel based text?

gaea
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.

Reply

Saint_Michael
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.

Reply

gaea
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).

Reply

Saint_Michael
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.

Reply

BuffaloHELP
QUOTE(gaea @ Jan 14 2007, 11:05 PM) *

...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... tongue.gif

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.

Reply

jlhaslip
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.

Reply

gaea
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords :

  1. Any Advice From Experts?
    wrapping text around pictures. (3)
  2. Centered Div Layout Issues
    Float Right item not vertically aligned with text (2)
    Hey everyone. I am writing an all div layout for my friends website and i just cant seem to get all
    the fields aligned properly. I can get all my images to be aligned and look great until i put any
    text on the site. For example, my box that will contain links and such has 3 parts: top, middle and
    bottom. Each of these have 3 parts: left, middle and right. To program the 3 parts of each row, i
    use 3 divs which are all floated based on their position. However, as soon as I put text in the
    middle area, the right image is moved down to a new line. The sample site is located ....
  3. Help With Website Layout Correction For All Browsers
    Page gets larger on Firefox 2 (4)
    If you go to my site at http://boozkerstweaks.trap17.com and you look at the home page everything
    is fine on all browsers. Problems start to arise very soon however. Here is my list of problems and
    i was wondering if someone could help with just whats wrong. I have done a HTML validator and found
    only 3 errors and all these problems still occured. You might find more now though because i am
    screwing around with the code. Here is the list of browsers and errors: Netscape 8.1: After you
    click on the pulldown menu and click the only tweak avaible at the moment the pag....
  4. Help Aligning My Site Into The Centre In Firefox
    site aligns to the centre in ie but not in firefox (5)
    I'm developing a new layout and so far, in my opinion, everything's going fine except for
    one thing. That's the way in which the whole layout is aligned. In IE6, the entire thing aligns
    beautifully in the centre whereas in firefox, it aligns leftwards. To get around this so far I'm
    using this java script: CODE   <script type="text/javascript">      if
    (screen.width > 880 && navigator.appName !== "Microsoft Internet
    Explorer")  {        window.resizeTo(880,window.screen.availHeight);     }
      </....
  5. Firefox Script Problem
    (5)
    Why Firefox can't scripting on below script:- CODE <center><a
    href='http://www.yahoo.com'>Yahoo!</a></center> If correct,
    the webpage should run "Yahoo!" at the center. When I using Internet Explorer, it run
    correctly, but when I using Firefox, the "Yahoo!" will go to the left side. Who know this,
    please explain to me and show me the introdution to make "Yahoo!" to center by using Firefox and
    Internet Explorer browser.....
  6. Text Problem
    (6)
    Alright well I am having a slight problem with my coding. I made my template and have it up on my
    site but my text I placed in the content box is towards the middle. I would like it at the top but
    I forget how to do that. I know it has to do with some like putting a table inside the table and
    making the height 100% or something. If someone could help me out with the coding I would greatly
    appreciate it. The link to my site is Here and the code used for the content box is this...
    CODE   <td colspan="6" rowspan="3"background="images/cont....
  7. Select All Text In A Form Field On Click
    (1)
    Hi, I have made a script which generates a BBcode when you run it, and displays it in a text field,
    like this: CODE <input type="text" name="bbcode" size="81"
    value="[IMG]<?php echo $url; ?>[/IMG]"> Well, anyway, I
    want something that selects all the text in that form field when you click on it, like it does in
    ImageShack when you upload.......
  8. Anchor Tag Compliance Issue?
    Firefox is tiny, IE and Opera okay (5)
    I have a string of anchor tags arranged as a menu bar horizontally on a page. Pretty basic stuff is
    included in the css to give some colour and rollover colour change. The page links have been in
    place in the Html code and all are tested and confirmed accurate. This topic has to do with the
    browser only,( I think). I mention this in case there might be concerns about the anchor tags being
    correctly coded. Yes, they are good. So I modified the css to get it looking the way I thought was
    correct for the page in terms of placement, Background colour, rollover effect, etc.....
  9. Word Wrap Text In Div.
    (14)
    i use 2 div's for the page layout. One for navigation and one for the contents. html Code:
    Original - html Code: CODE    <div width="10%" style="position:
    absolute; left: 2%;">
    bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb </div> <div
    width="86%" style="position: absolute; left: 14%;"> bbbb </div>
    But now the b's wont stay within their div-element. I want lines that doesnt fit on one line
    within the divto wrap to the next line. How can i do this?....
  10. Glow Text
    need help (2)
    Hi i Have One Vbulletin Form and i want Glow Users Name in form How can i do this I search in
    JavaScripts but i can not find it If You find it tell me thanks then Where Past this code on my form
    thanks /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> ....
  11. Add Text In Input-field
    (5)
    this is a picture of my shoutbox: one problem: the links/code for adding one of the smilies to
    the message-input-field (text: e.g. /laugh.gif' border='0' style='vertical-align:middle'
    alt='laugh.gif' /> , /unsure.gif' border='0' style='vertical-align:middle' alt='unsure.gif' />
    ,...) are missing. Does someone knows how this can be fixed? -the name of the message-input-field
    is "message". thanks in advance! /cool.gif' border='0' style='vertical-align:middle'
    alt='cool.gif' /> ....
  12. Layers With Text Appear
    (1)
    When I view this page in a Firefox browser on a Windows operating system, it looks fine, but when I
    view it on a friend's Firefox browser on his Linux operating system, the text layers extend
    their height downward on the page and overlaps the graphics on the bottom of the page. Is there a
    known fix?....

    1. Looking for Way, To, Stop, Ff, From, Resizing, Px, Based, Text?

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for Way, To, Stop, Ff, From, Resizing, Px, Based, Text?

*MORE FROM TRAP17.COM*
advertisement



Way To Stop Ff From Resizing Px Based Text? - Is there any way to stop firefox from resizing pixel based text?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE