Forum Moderators: not2easy
the bit from my external css-
#container {
width:750px;
border:1px solid #000000;
margin:0px;
margin-left:auto;
margin-right:auto;
padding:0px;
.subnavappearance{
margin:0;
padding:0;
border-bottom:0px solid #000000;
letter-spacing:0pt;
}
.subnavappearance a{
font-family:helvetica, verdana, arial, sans-serif;
font-size:10pt;
font-weight:normal;
padding: 1px 1px;
text-decoration:none;
letter-spacing:0pt;
}
.subnavappearance a:link, .subnavappearance a:visited
{
color:#888888;
}
.subnavappearance a:hover
{
color:#cccccc;
}
#subnavposition1{
width:150px;
position:absolute;
margin-left:64px;
margin-top:385px;
padding:0px;
border:0px;
}
#advertising {
border-top: 1px solid #000;
border-bottom: 1px solid #000;
padding: 0px;
background-color: gray;
height:500px;
background: #000 url(http://clintfisherart.com/graphics/ad.jpg);
background-repeat:no-repeat;
}
my xhtml code (1.0 trans)
<?php include ("../header.inc");?>
<title>cFA advertising work</title>
<body>
<div id="container">
<div id="banner"> </div>
<div id="advertising">
<div id="subnavposition1">
<div class="subnavappearance">
<a href="advertising/logo/">logo</a>
<a href="advertising/print/">print</a>
<a href="advertising/multimedia/">multimedia</a>
</div>
</div>
</div>
<div id="footer">
<?php include ("../botnav.inc");?>
</div>
</div>
</body>
</html>
TIA for any suggestions/comments
løk
sorry, not much help - I left my php server in my other trousers. only asp/winboxes at this office.
hope I can help more next time.
this is helpful:
[positioniseverything.net...]
auxum..
#subnavposition1{
width:150px;
position:absolute;
margin-left:64px;
margin-top:385px;
padding:0px;
border:0px;
}
when using absolute positioning margins should not be used. The correct attributes are ¦ top ¦ bottom ¦ right ¦ left ¦
as in the specific cco-ordinates.
e.g.
position:absolute;
left:64px;
top:385px;
I think this could be part of the trouble.. but I don't know if you margins set on the body element so can't be sure..
Secondly this will absolutely position the subnav in respect to the body element (which is why using margins might be unpredictable) but if you add position: relative; to your container div this will then mean that anything you position inside that div will take its co-ordinates from it and not the viewport.. so it might be easier to get a closer approxmation to your graphic.
Suzy