-
Border Overflow on a Fixed width Div tag
ok, didnt realise i had received a reply but found the problem with regards to centering the 'div container_all'. it was done to the margin borders as you suggested. as for the overflowing border in div container_footer, removing the css width property (or setting width:auto) solves the issue. the excessive border thicknesses was for demonstration purposes only. thanks for the help!
-
Hello WebDesignerForum
Hello! Some background info about myself.... From a tiny little country known as Gibraltar PHP & Mysql Developer Logical mind in perhaps a non-logical world! Hope to understand why / how some things work the way they do in the webdesign world! Looking forward to help others out where possible!
-
Border Overflow on a Fixed width Div tag
Copy and paste code below - you should see that the container_footer border overflows onto container_all. Why does it do this? Also, read the post on 'How to center content using CSS' and have not been able to replicate its effect - any reasons why it doesnt work in this code either?? <html> <head> <style type="text/css" media="screen" title=""> body { text-align:center; } div.container_all { text-align:left; border: solid black 0.24em; width: 1024px; padding: 0.24em; } div.container_banner, div.menu_navigation { margin-bottom: 0.24em; } div.container_banner, div.menu_navigation, div.menu_accessibility, div.intro, div.container_content, div.container_footer { padding:0.24em; width: 98%; } div.container_footer { margin-top: 0.24em; border: solid red 2.36em; } </style> </head> <body > <div class="container_all"> <div class="container_banner"> banner here </div><!-- end of div class container_banner --> <div class="menu_navigation"> menu navigation here </div><!-- end of div class menu_navigation --> <div class="menu_accessibility"> accessibility here </div><!-- end of div class menu_accessibility --> <div class="intro"> intro here </div><!-- end of div class intro --> <div class="container_content"> content here </div><!-- end of div class container_content --> <div class="container_footer"> footer here </div><!-- end of div class container_footer --> </div><!-- end of div class container_all --> </body> </html>
-
Border Overflow on a Fixed width Div tag
Copy and paste code below - you should see that the container_footer border overflows onto container_all. Why does it do this? Also, read the post on 'How to center content using CSS' and have not been able to replicate its effect - any reasons why it doesnt work in this code either?? <html> <head> <style type="text/css" media="screen" title=""> body { text-align:center; } div.container_all { text-align:left; border: solid black 0.24em; width: 1024px; padding: 0.24em; } div.container_banner, div.menu_navigation { margin-bottom: 0.24em; } div.container_banner, div.menu_navigation, div.menu_accessibility, div.intro, div.container_content, div.container_footer { padding:0.24em; width: 98%; } div.container_footer { margin-top: 0.24em; border: solid red 2.36em; } </style> </head> <body > <div class="container_all"> <div class="container_banner"> banner here </div><!-- end of div class container_banner --> <div class="menu_navigation"> menu navigation here </div><!-- end of div class menu_navigation --> <div class="menu_accessibility"> accessibility here </div><!-- end of div class menu_accessibility --> <div class="intro"> intro here </div><!-- end of div class intro --> <div class="container_content"> content here </div><!-- end of div class container_content --> <div class="container_footer"> footer here </div><!-- end of div class container_footer --> </div><!-- end of div class container_all --> </body> </html>