You would be better off running a 1px x 45px (optimised) image down the right hand side of your container something like the code snippet below.
The reason this is happening is because you have already utilised 100% of the view point width, if you add padding, margins, borders ect, you will add to the already maxed-out width of the respective container, and also invoke a horizontal scroll bar.
Because percentage is a dynamic measurement, my advice is to use an image. You will therefore be in a better position to cater for a vast majority of user agents (browsers).
Let me know how your get on
Kind regards
Main Topics
Browse All Topics





by: chilternPCPosted on 2009-08-03 at 17:16:20ID: 25009602
yep the border does add 1px too many.
on the border one...
you could try margin-righ:1px;
or actually state the padding: 0 0 0 0;