...

View Full Version : css/html help!!



jvignacio
11-14-2008, 07:43 AM
Add a short paragraph at the start of the document (eg. this text) and give it a class attribute of leftfloat, then use the float, width and border attributes to align it with the left margin with a box around it and make the main text flow around it.

any help thank you..
not sure how to give it a class attribute of leftfloat.. <h1 class="leftfloat>This is the text!</h1> ???

then i go back to my css sheet and #class{ } ??? and enter the attributes border etc etc ?

rangana
11-14-2008, 09:20 AM
I'm not sure of I got you right, but:


<style type="text/css">
h1.leftfloat{
float:left;
width:500px;
border:3px double #555;
}
</style>
<h1 class="leftfloat">This is the text!</h1>

_Aerospace_Eng_
11-14-2008, 09:38 AM
Sounds like it was a problem for a homework assignment.

jvignacio
11-14-2008, 10:15 AM
I'm not sure of I got you right, but:


<style type="text/css">
h1.leftfloat{
float:left;
width:500px;
border:3px double #555;
}
</style>
<h1 class="leftfloat">This is the text!</h1>


h1.leftfloat<--- this is what i didnt know. thank you!!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum