Jump to content


moving help!


6 replies to this topic

#1 hammer

    Young Padawan

  • Members
  • Pip
  • 105 posts
  • Location:Sweden ,MF! =D
  • Interests:gay porno,gay porno,OMG LOL what i just wrote =D

Posted 08 July 2005 - 10:57 AM

hi i want a code that moves my content boxes up like <p>&nbsp;</p> does but in pixels..is there a code for this?

Thanks in advance

#2 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 08 July 2005 - 10:58 AM

Could you explain more please?

#3 hammer

    Young Padawan

  • Members
  • Pip
  • 105 posts
  • Location:Sweden ,MF! =D
  • Interests:gay porno,gay porno,OMG LOL what i just wrote =D

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>&nbsp;</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 softLearner

    Young Padawan

  • Members
  • Pip
  • 128 posts

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:
<!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 hammer

    Young Padawan

  • Members
  • Pip
  • 105 posts
  • Location:Sweden ,MF! =D
  • Interests:gay porno,gay porno,OMG LOL what i just wrote =D

Posted 08 July 2005 - 12:01 PM

ok thanks! :ph34r:

#6 softLearner

    Young Padawan

  • Members
  • Pip
  • 128 posts

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.

#7 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users