Jump to content

why does this keep happening?


Noskiw

Recommended Posts

problemp.jpg

 

this is my css script

 

div#container {
margin-left: 50px;
margin-right: 50px;
margin-top: 50px;
}

div#header {
margin-right: 0px;
background-color: #CCC;
}

div#header p {
padding: 0px;
text-align: right;
padding-right: 5px;
}

div#header p a {
color: #a00000;
text-decoration: none;
}

div#header p a:hover {
color: #000;
text-decoration: underline;
}
div#nav {
text-align: left;
width: 200px;
background-color: #CCC;
margin-top: 15px;
padding:0px;
}

div#nav a {
color: #a00000;
text-decoration: none;
}

div#nav a:hover {
color: #000000;
text-decoration: underline;
}

div#nav h3 {
padding-top: 0px;
margin-top: 0px;
padding-bottom: 3px;
margin-bottom: 3px;
}
#content {
margin-left: 210px;	
margin-right: 0px;
background-color: #CCC;
padding:0px;
}

a {
color: #a00000;
text-decoration: none;
}

a:hover {
color: #000;
text-decoration: underline;
}

 

and this is my page code

 

<?php
include'./global.php';
session_start();
?>
<html>
<head>
<title>My Blog</title>

<link rel="stylesheet" href="./style.css" type="text/css">

</head>
<body>

<div id="container">

<div id="header">
<center><h1>My Blog</h1></center>

<?php

if($_SESSION['uid']){
echo "<p>You're logged in!</p>\n";
}else{
echo "<p>Welcome, <b>Guest</b> | <a href=\"./reg.php\">Register</a> | <a href=\"./login.php\">Login</a></p>\n";
}

?>

</div>

<div id="nav">

<a href="./index.php">Home</a><br>
<h3>Categories</h3>
<a href="">HTML</a><br>
<a href="">CSS</a><br>
<a href="">PHP</a><br>

</div>

	<div id="content" valign="top">
	 
	</div>
</div>
</body>
</html>

 

could anyone help me with this problem?

Link to comment
Share on other sites

div#container {
margin-left: 50px;
margin-right: 50px;
margin-top: 50px;
}

div#header {
margin-right: 0px;
background-color: #CCC;
}

div#header p {
padding: 0px;
text-align: right;
padding-right: 5px;
}

div#header p a {
color: #a00000;
text-decoration: none;
}

div#header p a:hover {
color: #000;
text-decoration: underline;
}

#content {
float:right;
width:82%;
paddin-left:15px;
margin-top: 15px;
min-width:600px;
background-color: #CCC;
padding:0px;
}

div#nav {
float:left;
text-align: left;
width: 15%;
min-width:200px;
background-color: #CCC;
margin-top: 15px;
padding:0px;
}

div#nav a {
color: #a00000;
text-decoration: none;
}

div#nav a:hover {
color: #000000;
text-decoration: underline;
}

div#nav h3 {
padding-top: 0px;
margin-top: 0px;
padding-bottom: 3px;
margin-bottom: 3px;
}


a {
color: #a00000;
text-decoration: none;
}

a:hover {
color: #000;
text-decoration: underline;
}

 

try that out, although it might not be exctly what your looking for....i would suggest looking into positioning things absolutly....and the page it too wide on my screen.... 1600pixels wide...so i would prolly not stay on your page too long if it was a done site...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.