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 7 of 7
  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Does php change dimensions on website?

    Hi..

    This is not so much a question about coding as it is about php in itself.
    My problem is something I have discovered on my website..
    Among others I have two pages on the site and the problem is that some of the boxes seem to move or shrink on one of the pages, but not on the other.

    The normal one:
    http://www.dingodism.frac.dk <-- here's how it's supposed to look

    The wrong one:
    http://www.dingodism.frac.dk/ny_artikkel.php <--- and here's the wrong one

    Never mind the text - it's danish..
    What I want you to notice is that in the wrong one the navigation-box (left) and the poll (right) has been moved slightly compared to the rihgt one.

    The only difference between the to pages, is that in the "wrong one" I have placed a php-script that sends a mail, a form and a javascript that validates this form..

    Can php-scripts have anithing to do with this problem? And how do I change it?

    //deaf_digit

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Quote Originally Posted by deaf_digit
    Can php-scripts have anithing to do with this problem? And how do I change it?

    //deaf_digit
    No. PHP only runs on the server.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder
    Join Date
    Sep 2005
    Location
    Liverpool
    Posts
    226
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would suggest you download Firefox and design and test using that, then go back and tweak things for it to look ok in IE.

    Presently they both look the same in Firefox, which means it is possibly an IE issue.
    my mind is on a permanent tangent

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Styles

    It's probably some style rule that's different between the two, or possibly a markup or style error.
    You could start by moving the styles out of the page markup to a common external style sheet so you now the styles are identical; added benefit is the reduced bandwidth usage.

    See that both pages, markup as well as styles, validate; also, give your pages an appropriate doctype to validate against.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    New Coder
    Join Date
    Nov 2005
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hehe...what?

    I'm not really that experienced in coding so I would be most greatful if you could slow down a bit

    Would it help if I showed the codes somehow?

    //deaf_digit

  • #6
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Off the top of my head I'd take a look at styling the form to have a margin & padding of 0. IE likes to create space inside form elements, depending on how you have them laid out. The style rule would be something like this:

    Code:
    form {
        padding : 0;
        margin : 0;
    }

  • #7
    Regular Coder
    Join Date
    Apr 2004
    Location
    Birmingham, MI
    Posts
    131
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The PHP page is missing the doctype, that will without a doubt cause IE to go whacko and use its less than savory border-box model. Add the doctype, problem solved.


  •  

    Posting Permissions

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