Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    set max width on page

    I have a simple page that is going to become sourced via iFrame onto another site, the problem is that in order for it to continue to look decent as an iFrame on this site it needs to have a maximum width is 500px, so the whole page itself has to have a max width of 500px.. I am not quite sure if I would do that in the .php file or the .css file, any help would be much appreciated

    Site that needs to go down to 500px: http://blinkink.info/dawnese/

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,097
    Thanks
    23
    Thanked 594 Times in 593 Posts
    You have a number of places in your style sheet that sets the width to 960px; Change all of those to 500px; and see what you get.

    Just do a search and replace.

  • #3
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you that helped with the body part but I am also trying to control how wide the blue and tan top border goes, is that even possible? I need to have a max width of 500px, as if you can control when that stops tiling, I know its not common but hopefully someone knows how..

    Blinkink.info/dawnese

  • #4
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,097
    Thanks
    23
    Thanked 594 Times in 593 Posts
    Before proceeding - go to http://validator.w3.org/ and check out and correct the errors in the coding. You have a number of end tags with no beginning tags. One of these is the </form> tag Now that should have a beginning somewhere.

    Also You have the table tags in the doc head and no end tag. These should be fixed.

    blue and tan top border - The image should be placed into a 500px; width <div>

    Fix code and post back


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •