How can I get text to scale to fit div?

I am using a fluid div layout and want the text to scale itself with a maximum and minimum size so that it does not cause the div to expand excessively.
Example - I scale the browser so that the code for the middle size, ipads, kicks in.
I have then sized the text so that it looks right, but when I expand the screen so UNTIL the next media size kicks in, the text appears too small and the box is oversized.
On the other hand I shrink the browser and the text wraps around causing the box div to expand too much causing the photograph to be outsized.
I can not post an example as the client information is now on the site and I don't want to fall foul of group policy by posting links to a live site or 'appear' to advertise it.
Thanks
Terry

Did you put your font-size properties inside your media queries?
/* Special Rules for tablets */
@media only screen and (max-width: 768px) {
   body {font-size: 110%}
/* Special Rules for desktops */
@media only screen and (min-width: 769px) and (max-width: 1223px) {
  body {font-size: 135%}
Nancy O.

Similar Messages

  • How can i get texts on my ipad?

    How can I get texts on my IPAD?

    SMS texts ? You need an app that permits SMS messaging.

  • Help filling out PDF - How can I get text to fit in text boxes?

    I need to fill out an application that is in the PDF format.
    When I filled it out, there were a few text boxes where the text did not wrap around.
    In other words, some of the text doesn't show.
    There is not enough space for what I typed.
    When I printed it out, the text was still blocked out.
    How can I get the text to fit in the box?

    Thank you so much for your help, try67!
    Was hoping for a solution on my end, but judging by your MVP status, you seem to now what you're doing! :-)

  • How can I get text messages on my iPad?

    HHow can I get text messages on my i
    phone and iPad?

    Text message for iPad. You should be able to send SMS on your phone.
    https://itunes.apple.com/sg/app/textme-international-free/id338088432?mt=8

  • How can you get text sent from a phone on your account to your email?

    I need to know i can see what is being sent in text by a phone on my account or the number that is being texted but i dont know how

    The title of your post isn't the same as the post, so I'm a bit confused.  If you want to see the numbers being texted by phones on your account, log into your on-line MyVerizon account (assuming you are the Account Owner and logged in as such) and click the blue Usage Details.  Select the appropriate line at the top of the page (if applicable) and then under the table showing text usage, click the blue View Messaging Details.  However, texts sent/received via iMessage won't show up since they don't go through Verizon's system.
    If you want texts sent to your e-mail, you should be able to forward them.  If it's another phone on your account that you're wanting those texts sent to your e-mail, there may be an app for that, but I'm not sure.  With Androids, you can get apps that back up text messages and then forward them to your e-mail; I don't know if there's a similar iPhone app or not.

  • How can I get text from a text field and display it in an alert?

    Hello!  I am BRAND NEW to Objective-C and Xcode and iOS, so PLEASE be forgiving of what is going to be a stupid question.  I have a text field.  I want to enter some text, click "return", and see my text in an alert.  It doesn't serve any useful purpose, but this is how I learn.  So far, I am unsuccessful.  Here's my function from my HelloEarthViewController.m file:
    -(IBAction)showInputMessageUITextField *)textField
    if ([textField.text isEqualToString:@""])
        return;
    UIAlertView *helloEarthInputAlert = [[UIAlertView alloc]
                                         initWithTitle:@"Name!" message:[NSString stringWithFormat:@"Message: %@", textField.text]
                                         delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    // Display this message.
    [helloEarthInputAlert show];
    Then I go option+click the text field and drag it to File's Owner and connect it to "showInputMessage:"  Then I run it and the build succeeds, but nothing happens when I click my "return" button on the iPhone simulator.
    What have I missed?  Where have I gone wrong? 

    Okay, here's where I am.  I have this in my view controller .h file:
    @interface HelloEarthViewController : UIViewController <UITextFieldDelegate>
        IBOutlet UITextField *textFieldTest;
    @end
    And this in my view controller .m file:
    -(IBAction)showInputMessage
        if ([textFieldTest.text isEqualToString:@""])
            return;
        UIAlertView *helloEarthInputAlert = [[UIAlertView alloc]
                                             initWithTitle:@"Name!" message:[NSString stringWithFormat:@"Message: %@", textFieldTest.text]
                                             delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
        // Display this message.
        [helloEarthInputAlert show];
    And I have connected the text field to showInputMessage.  When I hit "return", however, I still get nothing.
    Is an "action button" a real button?  From my limited understanding, the alert should launch when I click "return" since showInputMessage is attached to Editing Did End on the text field.
    Thanks for the help.  The transition from writing C# for web applications to writing Objective-C for iOS applications is not going as smoothly as I'd anticipated.

  • How can I get text to follow an arc of a shape?

    I am using the circle shape and I would like to put text along the arc of the edge of the circle.  So I think I need to 'curve' the text box.  Is that possible in Pages?  If so how is it done?  Thanks

    Pages, any version, can't do this on its own. Try Art Text 2 from Belight Software. There is a free version available on the Mac App Store.

  • How can I get text to appear over my placed or pasted images in InDesign CS6?

    I am new to InDesign and am having a few issues. I have a basic template for a site that I have built in Illustrator. I have placed the design into an InDesign document (I have tried both copy/paste and the Place feature). When I try to use InDesign to overlay text on top of the image, it shows up fine whenever I export to an image file. However, when I export to HTML, the text gets pushed directly underneath the image in web browser (it's visible, but shows on white space below my desired template). Is there any way to fix this? I have already tried enabling "Ignore Text Wrap" on the text frame and the text itself is set to the front of the document. Thanks!
    Message was edited by: pr1v1t813

    InDesign is not a web authoring tool. If you’re expecting text to simply overlay a graphic in export HTML from InDesign you’re going to be highly disappointed.
    I’ll make the assumption you know nothing about web authoring tools and HTML/CSS. I suggest you look into Muse.
    Bob

  • How can I get text printed out larger? It prints too small to read.

    I have an hp psc 1610 all-in-one printer. When I print articles from the internet the text is too small. The options to change size only seem to affect the screen size, not the printer size. It prints fine in my word processor, etc.

    File > Page Setup > '''Scale''' <br />
    100% or Shrink to Fit is usually the best.
    http://kb.mozillazine.org/Problems_printing_web_pages

  • How Can I Get Text Edit To Restore It's Previous Work Space?

    I was having some buggy behavior on my MBP, and finally had to do a fresh install of OSX.
    I was using 10.8.2 on the old setup, and the same now in the fresh install.
    In order to NOT import any settings that were causing the bad behavior, I only migrated in my Applications.
    On my old system, (before the fresh install) when I quit TextEdit I did not have to save any of the open docs, they would just be there as I left them restored when I relaunched it.
    Now when I try to quit it asks me if I want to save the untitled docs, or lose them.
    And now, when I launch the app, it opens a new blank text window.
    I would really like TextEdit to automatically open all the previously opened documents, and not ask to save them.
    Any advice?

    It was staring me, well, in the face.
    System Preferences: General
    I'm actually kinda' embarrased... But then again, no one else had the answer either!
    As a side note, the way I got to finally figuring it out, was when I launched Safari directly, it would restore the previous workspace.
    But, when Safari would launch from a link in Mail, it would only open that single page, and I had to restore the workspace manually.
    I then realized it was more system wide, which lead me to System Preferences!

  • With Photoshop 7 how can I get text in a layer that is in effect the colours of the layer behindd

    Have tried several Google searches but not quite found what I think I'm looking for
    My PS7 Bible is also a little lacking on an obvious explanation of what I'm trying to achieve
    thanks
    Richard

    Do you mean something like this:
    If you have white text and you set the blend mode to "Darken" or "Multiply" you will see whatever is behind the text. Black text with "Lighten" or "Screen" would give the effect. I added a stroke to the text so it would be visible.
    Mike

  • How do i get text tones?

    how can I get text tones for my iphone? I know how to get ring tones but don't know how to convirt them to text tones.

    You don't.
    This is not and has never been a feature of iphone.
    Reportedly it will be on ios 5

  • How can I get just the text to resize, rather than the entire web page?

    I used to be able to re-size just text on a webpage by typing Ctrl + +. Today, the entire webpage re-sizes, and when I move to another page it reverts. (I see this mostly in Facebook.). Why did this change, and can I go back to having just the text re-size?

    ''How can I get just the text to resize -- zoom text only''
    steps
    #"Alt" if no menu bar, then
    # View > Zoom > Zoom Text Only
    Zoom text of web pages - MozillaZine Knowledge Base
    :http://kb.mozillazine.org/Zoom_text_of_web_pages
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

Maybe you are looking for

  • To Everyone with Random Shutdowns! (Solved! REALLY!)

    Hey all, I had posted about a week back about my Macbook (Core duo white, late 2006), it was having the same symptoms as some of the others with the known random shutdown syndrome (RSS). Like many others I had thought it was the end of my macbook and

  • PO printout is not coming after changing only line item Delivery Address

    Hi Can anybody suggest a solution for the problem? Using ME22N , if I change the line item delivery address details to the already generated manual address number ( Not generated using Transaction MEAN) If I save the PO then PO Printout is not coming

  • E-mail problems I'm experiencing

    I don't know if they're related, but here are some things that I have noticed recently. (1) No more whoosh when I send an E-mail. (2) I can no longer send an E-mail to myself, at least I can't receive it. (3) I think that some of my E-mail to others

  • OBIEE 11G server not coming up after window username got chnged

    Hi, We have installed OBIEE 11g and was working fine. But, now the window username of the machine got changed and the BI server is not coming up. Do we need to re-install it or any workaround for this issue. Thanks, Anilesh

  • Error in serialization

    Hello, I am using 9.0.2.0.0 production version of the parser. When I try seralize a xml and deseralize the xml , I am getting the error. "java.io.IOException: Error in serialization" DOMParser parser = new DOMParser(); FileInputStream in = new FileIn