Total members 11889 |It is currently Thu Mar 28, 2024 9:51 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>
 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  
 TEMPERATURE AND HEAT CONTROL Assembly     -  
 Control scroll speed using JQuery     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com