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 13 of 13
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Body Margin Problem in Firefox

    I am using the following piece of code to make body margin 0.

    <body leftmargin="0" topmargin="0" marginwidth="0">

    when i use a table and want it to cover the entire height of the page,I can still find a portion of blank space below the table.I am using height=100&#37; in the table tag.Please help.Mind you,I am getting this peculiar problem in firefox,everything looks smooth in IE.
    Last edited by ananyamitra; 05-14-2008 at 11:42 AM.

  • #2
    Regular Coder
    Join Date
    Dec 2007
    Posts
    107
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Try using:

    <Body style="margin: 0px;">

    Hope this helps
    Programming & Webmaster Forum - AdSense Revenue Sharing forum

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    We really need to see more code than this. All of it preferably or better still a site url.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #4
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am pasting the coding of the tables being used.And that style solution I had already tried previously,no use!!!



    <body bgcolor="#999999" leftmargin="0" topmargin="0" marginwidth="0">

    <table border=0 align=center height=100&#37; width=100% cellspacing="0" cellpadding="0">


    <tr>
    <td>

    <table border=0 align=center bgcolor=white cellspacing="0" cellpadding="0" width=100%>



    <tr>
    <td>

    <table border=0 cellspacing="0" cellpadding="0" bgcolor="#2e64ae" width=100%>
    <tr>
    <td align=left>
    some content here
    </td>
    </tr>
    </table>


    </td>
    </tr>
    <tr height=25px>
    <td>
    <table class="buttonsHome" cellspacing="2" cellpadding="0" border="0">
    <tr>
    <td>some content here </td>
    </tr>
    </table>
    </td>
    </tr>

    <!--Top Image and Text Setion -->
    <tr>
    <td>
    <table align="center" width=900px cellspacing="0" cellpadding="0" -class="picLeft" border=0>
    <tr valign="middle">
    <td>
    Some content
    </td>
    </tr>
    </table>
    </td>
    </tr>

    <!--End of image table -->



    <!-- 50 pix gutter section between image and links -->
    <tr height=50px>
    <td>
    &nbsp;
    </td>
    </tr>
    <!-- End of gutter section -->


    <!-- Link Section Start -->



    <tr>
    <td>


    <table align="center" -class="linkPositions" border=0>
    <tr valign=top>
    <!--First table-->
    <td>
    Some Content Here
    </td>

    </tr>
    </table>





    </td>
    </tr>

    <tr height=85px>
    <td>
    &nbsp;
    </td>
    </tr>

    <!--Footer Row -->
    <tr>
    <td>

    <table align="center" width=100% cellspacing=0 cellpadding=0 class="footer" border=0>
    <tr align="left"height="60" bgcolor="#3a7dda">
    <td width=60% >

    Some Content Here
    </td>
    </tr>
    </table>

    </td>
    </tr>
    <!-- End of footer row -->




    </table>

    <!-- End of biggest table -->
    </td>
    </tr>




    </table>
    </body>
    Last edited by ananyamitra; 05-14-2008 at 01:22 PM.

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I aprreciate yor response,but as of now I need a solution to the above problem.Definitely I will improve my design skills with the help of that link buddy....

  • #7
    Regular Coder
    Join Date
    Apr 2008
    Location
    Manila, Philippines
    Posts
    263
    Thanks
    3
    Thanked 12 Times in 12 Posts
    use this..

    body {margin:0;
    padding0;
    }

  • #8
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    use this..
    body {margin:0;
    padding0;
    }
    This is css and will need to go in the Head section thus.

    <style type="text/css">
    body {margin : 0;
    padding : 0;
    }
    </style>
    </head>

    Frank
    Last edited by effpeetee; 05-14-2008 at 03:38 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #9
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Both of you missed a colon
    Code:
    padding : 0;
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #10
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,182
    Thanks
    174
    Thanked 257 Times in 257 Posts
    I know that in order to have a descent cross browser use i set everything to a default 0px by using this code.

    Code:
    * {
    margin:0px;
    padding:0px;
    }
    That will set all elements to "0". Its just for further information.

  • #11
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Quote Originally Posted by jcdevelopment View Post
    I know that in order to have a decent cross browser use i set everything to a default 0px by using this code.

    Code:
    * {
    margin:0px;
    padding:0px;
    }
    That will set all elements to "0". Its just for further information.
    Everytime.

    abduraooft : I've put it right. I just cut and pasted it!

    Frank
    Last edited by effpeetee; 05-14-2008 at 03:41 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #12
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I had tried dat body:0 padding:0 solutin way back,sorry to inform that didn't work in firefox either.However
    * {
    margin:0px;
    padding:0px;
    }
    indeeds solves the problem...but the rest of the layout seems destroyed in firefox.However,thanx 4 all ur help buddies.If there is any other alternative do let me know.

  • #13
    Regular Coder
    Join Date
    Apr 2008
    Location
    Manila, Philippines
    Posts
    263
    Thanks
    3
    Thanked 12 Times in 12 Posts
    Quote Originally Posted by abduraooft View Post
    Both of you missed a colon
    Code:
    padding : 0;
    hahaha... its very annoying when it comes to typo in coding..

    but what can i say... my bad..


  •  

    Posting Permissions

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