Yea sorry...the code you provided works thanks...but it dusnt work with mine..here is my code:
<style type="text/css">
div.myBox
{
margin-right:50;
position:absolute;
height:200;
left:100;
top:100;
border:1 solid red;
}
</style>
<div class="myBox"></div>
That doesnt work..any ideas...
im making a box using <div> tags..
the height of the box i have made fixed, but i want to make the width variable and i want to make it so when i resize the browser window, the width of that box changes so that it stays 50pixels from the right side of the browser window
any ideas how to do this...
ive tried that but the horizontal line still appears at the top of the page.
i have 3 boxes above where the line should be and ive used classes for each of the boxes..
ive tried putting just <HR> there after the 3 boxes <div> tags but it appears at the top of the page and not below the 3 boxes...
hi
I am makin a page in CSS and xhtml..
i have made a header box using this in the head:
h1
{
position:absolute;
width:600;
height:50;
left:302;
top:93;
font-weight:bold;
font-size:36;
font-family:Arial;
}
and this in the body:
<h1>Assignment 1 - XHTML and CSS</h1>
I also got...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.