Add padding to a single div
16,460
Solution 1
Try <div style="padding-top: 10px;">
:)
Solution 2
Use firebug on Chrome or Firefox and see which div or element inside the carousel needs the padding you want.
However, the best way would be to use CSS. As you said, you want a padding, and CSS has the padding property. As @Jorgen said, just add a padding top.
Otherwise use <br>
instead as @Mr Lister said
Author by
jsan
Updated on June 04, 2022Comments
-
jsan almost 2 years
How can I add padding to the top of a single
div
? Is there a way to do it without modifying the.css
file? I am usingBootstrap
and there is no space between thecarousel
and the firstdiv
. I tried adding padding to thecarousel
, but the color of the left and right chevron overlap the padding, and this is not the look I want. I want a true white space between the two. -
Michelangelo about 9 yearsTechnically this is playing with css :)