hi i want a code that moves my content boxes up like <p> </p> does but in pixels..is there a code for this?
Thanks in advance
moving help!
Started by hammer, Jul 08 2005 10:57 AM
6 replies to this topic
#1
Posted 08 July 2005 - 10:57 AM
#2
Posted 08 July 2005 - 10:58 AM
Could you explain more please?
#3
Posted 08 July 2005 - 11:19 AM
well i need to move a content box up like 3 or 4 pixels to get it exactly right,i could to this with <p> </p> but it moves it too much up and messes it up completly..is there a way to to this with a few pixels only...u understand?
#4
Posted 08 July 2005 - 11:22 AM
PHP can't move anythink! You'll want to use CSS for postioning objects on a webpage.
Take this for an example:
Take this for an example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
#nav {
float:left;
width: 150px;
height: 100px;
text-align: center;
border:1px solid #CCCCCC;
}
#con {
float: left;
width: 500px;
text-align: center;
margin-left: 10px;
height: 100px;
border: 1px solid #CCCCCC;
}
</style>
</head>
<body>
<div id="nav">nav</div><div id="con">content</div>
</body>
</html>
#5
Posted 08 July 2005 - 12:01 PM
ok thanks!
#6
Posted 09 July 2005 - 09:39 AM
Also for positioning content on webpage using CSS just search in google for CSS: Positioning
There are many ways of positioning content.
There are many ways of positioning content.
#7
Posted 09 July 2005 - 12:57 PM
And after you do that, search for the ie box model problem.
If you want to get things to display correctly for everybody, you're going to want to do that, trust me.
If you want to get things to display correctly for everybody, you're going to want to do that, trust me.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
