Reverse padding with CSS - HTML CSS CSS Property

HTML CSS examples for CSS Property:padding

Description

Reverse padding with CSS

Demo Code

ResultView the demo in separate window

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
body {<!--from  w ww  .j  av  a 2 s .  co  m-->
   background:Chartreuse;
}

.paragraphSection {
   border-top:2px solid yellow;
   padding:0;
}

.textHeading {
   padding:0 4px;
   background:blue;
   -moz-border-radius:6px;
   border-radius:6px;
   font-size:3em;
}
</style> 
 </head> 
 <body> 
  <title>L</title> 
  <div class="paragraphSection"> 
   <span class="textHeading">Lorem ipsum dolo</span> 
   <span class="mainBodyText">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharet</span> 
  </div>  
 </body>
</html>

Related Tutorials