![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a problem with an element of 100% width and a left paddig. The effect I try to achieve is easy, take a look at: http://swing-tanzen-verboten.de/test.html My Problem is, the width of the element h1 is 100%+20px and causes therefore an horizontal scrollbar. Looks not nice. Any ideas how to get the element to a width of 100% with a padding? |
#3
| |||
| |||
|
|
Hi, I have a problem with an element of 100% width and a left paddig. The effect I try to achieve is easy, take a look at: http://swing-tanzen-verboten.de/test.html My Problem is, the width of the element h1 is 100%+20px and causes therefore an horizontal scrollbar. Looks not nice. Any ideas how to get the element to a width of 100% with a padding? Thanks Chris It's not the padding that is giving the problem. |
#4
| |||
| |||
|
|
Chris Leipold wrote: I have a problem with an element of 100% width and a left paddig. The effect I try to achieve is easy, take a look at: http://swing-tanzen-verboten.de/test.html My Problem is, the width of the element h1 is 100%+20px and causes therefore an horizontal scrollbar. Looks not nice. Any ideas how to get the element to a width of 100% with a padding? It's not the padding that is giving the problem. |
|
Add left:0; to the style. |
#5
| |||
| |||
|
|
On Fri, 12 Nov 2004 16:35:02 +0000 (UTC), 2metre 2metre (AT) xxxhersham (DOT) net> wrote: Chris Leipold wrote: I have a problem with an element of 100% width and a left paddig. The effect I try to achieve is easy, take a look at: http://swing-tanzen-verboten.de/test.html My Problem is, the width of the element h1 is 100%+20px and causes therefore an horizontal scrollbar. Looks not nice. Any ideas how to get the element to a width of 100% with a padding? It's not the padding that is giving the problem. Yes it is. 100% + 20px is greater than 100% therefore scrolling is produced. Add left:0; to the style. That moves the blue all the way to the left, but (except in IE5 with its broken box model) still produces horizontal scroling. Steve |
#6
| |||
| |||
|
|
create a table with 100% as width and add the h1 inside it |
![]() |
| Thread Tools | |
| Display Modes | |
| |