Hello all, i recently had a resolution problem which made so that when you change resolution the div moves away, but solved it by adding
Code:
#main { text-align: left; margin-right: auto; margin-left: auto; width: 1003px; } #all { position: absolute; width: 1003px; }
Into the CSS and (Deleting the < of all hrefs because it becomes an url then if i don't)
Code:
<div id="main"> <div id="all">
to the html file so that it applies to all of the div's. But then i got a new problem.. The links stopped working in my other div here:
HTML Code:
<div class="stil1" id="Navigation">
<div style="text-align:center; z-index:2;"><p class="stil3 stil8 stil9"><img src="http://www.webmaster-talk.com/images/d-2.jpg" width="100" height="62" alt="d-1" /></p></div>
<div style="text-align:center;"><p class="stil3 stil8 stil9"><img src="http://www.webmaster-talk.com/images/nav.jpg" width="125" height="25" alt="disk" /></p></div>
<p class="stil3 stil5"><a href="index.php?p=start">>> Start</a><span class="stil7"><br />
<a href="index.php?p=archive">>> Nyhetsarkiv</a><br />
<a href="index.php?p=faq">>> FAQ</a><br />
<a href="index.php?p=contact">>> Kontakta Oss</a><br />
<a href="index.php?p=about">>> Om oss</a></span><br />
</p>
<div style="text-align:center;"><p class="stil3 stil8 stil9"><img src="http://www.webmaster-talk.com/images/disk.jpg" width="125" height="25" alt="disk" /><br /></p></div>
<p class="stil3 stil5"><span class="stil7"><a href="index45.php?p=irc">>> IRC</a><br />
<a href="forum/index.php">>> Forum</a></span><br /></p><div style="text-align:center;"><p class="stil2 stil3"><img src="http://www.webmaster-talk.com/images/animang.jpg" width="152" height="25" alt="animang" /><br /> </p></div>
<p class="stil3 stil5"><span class="stil7"><a href="index.php?p=manga">>> Manga Lista</a><br />
<a href="index.php?p=animel">>> Anime Lista</a><br />
<a href="index.php?p=genrer">>> Genrer i Anime/Manga</a><br />
<a href="index.php?p=suffix">>> Namnsuffix</a></span><br />
</p><div style="text-align:center;"><p class="stil 2 stil3"><img src="http://www.webmaster-talk.com/images/media.jpg" width="100" height="25" alt="media" /><br />
</p></div>
<p class="stil3 stil5"><span class="stil7"><a href="index.php?p=wallpapers">>> Wallpapers/Bilder</a><br />
<a href="index.php?p=downloads">>> Nerladdningar</a><br />
>> Filmer</span><br /></p>
<div style="text-align:center;"><a title="RSS Feed" href="http://manganatio.110mb.com/cutenews/rss.php">
<img src="cutenews/skins/images/rss_icon.gif" alt="rss" />
</a></div>
Worked before the solution there, and i know that that piece of code was the cause of this, so help me solve it, please. The CSS is:
Code:
.stil1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px; } .stil2 { font-size: 22px; font-family: Arial, Helvetica, sans-serif; } .stil3 { font-size: 22px; font-family: Verdana, Arial, Helvetica, sans-serif; } .stil5 { font-size: 10px } .stil7 { font-size: 11px } a:link { color: #8EB3EF; text-decoration: none; } a:visited { text-decoration: none; color: #8EB3EF; } a:hover { text-decoration: none; color: #f7cf15; } a:active { text-decoration: none; } .stil8 { font-family: Verdana, Arial, Helvetica, sans-serif } .stil9 { font-size: 22px } .stil10 { font-size: 14px } body { background-color:#e5e6d8; background-image: url(images/paper4.png); margin-right: auto; margin-left: auto; } #main { text-align: left; margin-right: auto; margin-left: auto; width: 1003px; } #all { position: absolute; width: 1003px; } #banner { text-align:center; left:10%; position:absolute; height:800px; width:177px; z-index:1; } #infobox { background-color: #b9d1fc; position:absolute; opacity: .8; width:250px; height:80px; top:130px; left:10px; margin:0px; padding:0px; border:1px #a2c2fb solid; font-family: Verdana; font-size:14px; z-index:2; } #box { background-color: #b9d1fc; position:absolute; opacity: .8; width: 300px; height: 140px; top: 30px; right: 40px; border:1px #c9b974 solid; font-family: Verdana; font-size: 14px; z-index:0; margin-right: auto; margin-left: auto; } #innehall { position:absolute; background-color:#fefffc; top:175px; right:103px; width:645px; border:1px #ece2c0 solid; padding:0px; margin: 0px auto; padding: 0; margin-right: auto; margin-left: auto; } #Navigation { position:absolute; background-color:#fefffc; top:175px; left:100px; border:1px #ece2c0 solid; margin-right: auto; margin-left: auto; } #copyright { position:absolute; top:800px; left:3px; font-size:9px; font-family: Verdana; }
Thanks in forehand.. /Kromgol
Last edited by Kromgol; 07-21-2008 at 07:04 PM..
|