Switch to full style
HTML code examples
Post a reply

Control HR tag width and height

Wed Feb 15, 2012 9:36 pm

Following example show you how to control your usage hr width , height and color at the same time using CSS classes.


Code:
<html>
<
head>
<
title>change the width of HR tag</title>
<
style type="text/css">
hr.hr1 {
 
background-colorred;
 
width100px;
 
height12px;

}
hr.hr2 {
 
background-colorred;
 
width400px;
 
height5px;

}
</
style>
</
head>
<
body>
<
hr class="hr1" />

  <
p>Changing the hr width using css</p>
<
hr class="hr2" />
  
  
</
body>
</
html>
 




Post a reply
  Related Posts  to : Control HR tag width and height
 draws a big image scaled to its width-height as specified     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 Change Image File Size (Height And Width) While Uploading     -  
 (3.0.4) Skymiles Setting Fixed WIDTH     -  
 Setting maximum height of paragraph -P tag     -  
 Changing the line height of the paragraph     -  
 TCP Transmission Control Protocol     -  
 PC control by mobile Project     -  
 Control scroll speed using JQuery     -  
 Curve Control Point in java     -