Jump to content
php.lv forumi

Recommended Posts

Posted (edited)

vēlos uztaisīt div kas augstumā ir pa visu ekrānu:

body{
margin-top:0px;
margin-bottom:0px;
height:100%;
}
#warp{
border:1px solid #ff0000;
width:800px;
margin-right:auto;
margin-left:auto;
height:100%;
}

tagad viņš atrodas pa vidu, bet nav augstumā 100%

 

pieliekot pie #warp klāt position:absolute; tad viņš ir 100% bet atrodas labajā malā.. kā to var novērst un lai strādātu uz visiemn pārlūkiem? :?

Edited by ziedinjsh
Posted

css:

html,body{
margin-top:0px;
margin-bottom:0px;
min-height: 100%;
}

/* skin */

#warp{
border:1px solid #ff0000;
margin:0 auto;
min-height:100%;
position:relative;
width:800px;
}

#left{
background-image:url(left-bg.gif);
background-repeat:repeat-y;
border-left:5px solid #000000;
border-top:0px solid #000000;
border-right:5px solid #000000;
border-bottom:0px solid #000000;
min-height:100%;
width:250px;

}

#fix{
clear:both;
}

/* menu */
.menu{

}
.menu:hover{
background-color:#000000;
color:#ffffff;
}
.current{
font-weight:bold;
}

 

html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<hrml>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>A/S Grobiņa</title>
<link href="misc/style.css" rel="stylesheet" type="text/css" />
</head>
<body>

<?php
$url = "http://www.producentiem.lv/adas/";
$page = (isset($_GET['page'])) ? $_GET['page'] : '';


echo "<div id='warp'>";

echo "<div id='left'>";


echo "<a href='".$url."' ". (($page == "") ? "class='current'" : "") ."\">Sākums</a>";
echo "<a href='".$url."?page=about' ".(($page == "about") ? "class='current'" : "")."\">Par mums</a>";
echo "<a href='".$url."?page=biography' ".(($page == "biography") ? "class='current'" : "")."\">Biogrāfija</a>";
echo "<a href='".$url."?page=contacts' ".(($page == "contacts") ? "class='current'" : "")."\">Kontaktinformācija</a>";



echo "</div>";


echo "</div>";





?>

Posted

Un cik tev maksā šo kodējot?

un kas ir ja tu noņem nost

 

echo "<div id='left'>";

un šo

echo "</div>";

?

iespējams, ka left'am arī vajag pozīciju norādīt

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...