![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Here is my styles: |
|
In the div content I create the framed boxes and give then a padding at the left of 20px. Problem is that hte title gets the same padding, whereas it should align at the left frameline of the box. |
|
left:0; |
#3
| |||
| |||
|
|
Scripsit Sjef Janssen: Here is my styles: As usual, a URL would have helped. In the div content I create the framed boxes and give then a padding at the left of 20px. Problem is that hte title gets the same padding, whereas it should align at the left frameline of the box. No, the h1 element does not get the padding, but the div element's padding restricts the width available to the h1 element. A simple solution is to set no padding for the div element but (different) margins for the elements inside it. left:0; What's the point? Are you using positioning in some part of a style sheet? -- Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/ |
#4
| |||
| |||
|
|
Hallo, I'm trying to create boxes that have nicely spaced paragraphs, but a title that is in a colored line full-width. Here is my styles: In the div content I create the framed boxes and give then a padding at the left of 20px. Problem is that hte title gets the same padding, whereas it should align at the left frameline of the box. #content { background-color:white; border:1px solid gray; padding: 0px 0px 0px 20px; } #content h1 { left:0; font-size: 1.4em; font-weight:bold; font-style: italic; padding:0px 0px 0px 10px; margin:0px 0px 0px -20px; background-color:#CCCC99; width:100%; } I cannot give a negative padding. Is there a solution for this? -- sjef janssen http://www.extranet.ou.nl/studie-profiel/836551051.asp |
#5
| |||
| |||
|
|
"Sjef Janssen" <manuals-scripts (AT) planet (DOT) nl> schreef in bericht news:4666bfc7$0$25482$ba620dc5 (AT) text (DOT) nova.planet.nl... Hallo, I'm trying to create boxes that have nicely spaced paragraphs, but a title that is in a colored line full-width. [snip] I changed the margins and it looks fine in IE. But in Firefox the H1 box extends uotside the div box only on the right side. A difference between IE and Firefox. Is there an easy way to correct this? [snip] |
![]() |
| Thread Tools | |
| Display Modes | |
| |