![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have a small <div> element which contains two text blocks - one within h5> tags and the other within <p> tags. I don't want any extra line spacing between elements so use the display:inline property. |
#2
| |||
| |||
|
|
Danny@Kendal wrote: I have a small <div> element which contains two text blocks - one within h5> tags and the other within <p> tags. I don't want any extra line spacing between elements so use the display:inline property. Your problem is not block or inline positioning, but browser-default margin and padding. Add: margin: 0; padding: 0; to each element styling and see them come together. Adjust as required - try putting coloured borders around each element to see the effect. margin and padding *must* have a unit of measure if non-zero. |
![]() |
| Thread Tools | |
| Display Modes | |
| |