Topic: getting div and p to play nice (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: |
![]() I've been awhile from hand coding for a bit, but it's time to get back into it. |
Nervous Wreck (II) Inmate From: |
![]() The p tag may be providing its own vertical spacing. Make sure that padding and margins for p tag are zero and then see where you stand. You may also want to set padding to 0 for the div as well... code: div {
|
Maniac (V) Mad Scientist From: |
![]() Damn. You beat me to it. |
Maniac (V) Inmate From: under the bed |
![]() Yeah, it's always a good idea to specify such things for all of your block level elements, because each browser will have its own default. |
Nervous Wreck (II) Inmate From: |
![]() you could try br instead of p |
Maniac (V) Inmate From: under the bed |
![]() That would be a terrible, terrible thing, and should never be done. |
Paranoid (IV) Mad Scientist From: Right-dead center |
![]() ...that or there's a great big bloody hole in the middle of wj's desk.... |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() this reminds me - we need a 'stupid html archive' |