/    Sign up×
Community /Pin to ProfileBookmark

Moving links?

For some odd reason, when I make the height of my #content div 80%, or even define the div’s height, the links inside move the the left and right when you hover over them, and when you click on them. I think it might have something to do with a varient of the peekaboo hack(the whole float clear:both weird thing where links dissapere).
I have tried making the padding and margin set to zero, but that doesn’t change anything!
The place is [url=http://www.subsilvernet.com/stargate/index.php]here[/url].

Help!

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@zachzachauthorJun 23.2004 — Woops, I forgot to add that the problem only appears when your logged in. Heres the code for when I'm logged in as Administrator:

<i>
</i>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" lang="en"&gt;
&lt;head&gt;
&lt;title&gt;Stargate Command&lt;/title&gt;
&lt;!--Meta Tags--&gt;
&lt;meta http-equiv="content-script-type" content="text/javascript" /&gt;
&lt;meta http-equiv="content-style-type" content="text/css" /&gt;
&lt;meta http-equiv="pragma" content="no-cache" /&gt;
&lt;meta http-equiv="cache-control" content="no-cache" /&gt;
&lt;meta http-equiv="cache-control" content="must-revalidate" /&gt;
&lt;meta http-equiv="cache-control" content="proxy-revalidate" /&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=windows-1252" /&gt;
&lt;meta http-equiv="content-Language" content="en-us" /&gt;
&lt;meta http-equiv="imagetoolbar" content="false" /&gt;
&lt;meta name="MSSmartTagsPreventParsing" content="true" /&gt;
&lt;meta name="copyright" content="Zachary Adam Blume" /&gt;
&lt;meta name="author" content="Zach Blume" /&gt;
&lt;meta name="robots" content="all" /&gt;
&lt;meta name="doc-class" content="living document" /&gt;
&lt;meta name="revisit" content="2 days" /&gt;
&lt;meta name="distribution" content="global" /&gt;
&lt;style type="text/css"&gt;
body, html { padding:0; background: #B9682D; font-style:normal; font-variant:normal; font-weight:normal; font-size:11px; font-family:Lucida Grande, Verdana, Arial, Helvetica, sans-serif; margin-left:0; margin-right:0; margin-top:0; margin-bottom:25px }
/*--Image styles--*/
img { border:0px none; margin:0; padding:0; }
img.header { }
img.footer { }
/*--Link styles--*/
a:link { text-align:left; padding:0; margin:0; color:#c30; text-decoration:none; font-weight:bold }
a:visited { text-align:left; padding:0; margin:0; color:#cf6c4a; text-decoration:none; font-weight:bold }
a:active, a:hover { text-align:left; padding:0; margin:0; color:#c30; font-weight:bold; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:#c30 }
/*--Content, header/footer styles Styles--*/
div#footer { text-align: center; border-left:1px solid #867663; border-right:1px solid #867663; border-bottom:1px solid #867663; border-top:0px none; margin-left: 10%; margin-right: 10%; margin-top: 0; margin-bottom: 2%; background: #345655; padding-top:0; padding-left:1%; padding-right:1%; padding-bottom:1% }
div#content { height:550px; border-left:1px solid #867663; border-right:1px solid #867663; border-top:1px solid #867663; border-bottom:0px none; margin-left: 10%; margin-right: 10%; margin-top: 1%; margin-bottom: 0; background: #FFF; padding-top:0; padding-left:1%; padding-right:1%; padding-bottom:1% }
div.box { border:1px solid #000; padding:5px; padding-top:3px }
div.box p { padding-bottom:3px; }
div.box p.allowMargin { padding:0px; }
/*--Text styles--*/
/*Header styles*/
h1, h2, h3 { color: #867663; margin:6px; margin-left:0; }
h1 a, h2 a, h3 a { margin:6px; margin-left:0; padding:0 }
h1 { font-size:2em }
h1 a { font-weight:normal }
h2 { font-size:1.5em; font-weight: 550; }
h2 a { font-weight:normal }
h3, h3 a { font-size:1.3em }
h4, h4 a { font-size:small }
h5, h5 a { font-size:x-small; }
h6, h6 a { font-size:xx-small; }
/*P styles*/
p { margin:0; padding:0; }
p.allowMargin { margin:7px; left-margin:20px; margin-bottom:5px; }
/*Other text styles*/
em { }
strong { }
span.quote { font-weight:bold; display:inline; }
span.quote:after { content:"'"; }
span.quote:before { content:"'"; }
span.capatalize { text-transform:capatalize; }
span.allcaps { text-transform:uppercase; }
form span.note { font-weight:bold; color:darkorange; font-size: xx-small }
/*--Table Styles--*/
.teaminfo_table { width: 95%; border:1px solid #000; background:#ECF2F3; text-align:center; }
.teaminfo_table thead, tbody, tfoot { width:100%; }
.teaminfo_table thead th, .teaminfo_table tbody tr td { width:33%; }
.teaminfo_table tbody tr { padding:0; margin:0; border:1px solid #000; }
.teaminfo_table tbody tr td { padding:0; margin:0; }
.notes_table { width: 95%;border-collapse: collapse; border:1px solid #000; background:#ECF2F3; text-align:center; }
.notes_table thead, tbody, tfoot { width:100%; }
.notes_table thead th, .notes_table tbody tr td { width:25%; }
.notes_table tbody tr.green { background: #D7FFC4; }
.notes_table tbody tr.blue { background: #C4CFFF; }
.notes_table tbody tr.purple { background: #E7D3E7; }
&lt;/style&gt;
&lt;script type="text/javascript"&gt;
function close_box(idthing) {
if(document.getElementById(idthing).style.display=="") {
document.getElementById(idthing).style.display="none"
}else{
document.getElementById(idthing).style.display=""
}
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div id="content"&gt;

&lt;h1&gt;&lt;a href="/stargate/index.php?sid=a14ec42550df0fe4ac541bb0e60b18b3"&gt;Stargate Command&lt;/a&gt;&lt;/h1&gt;
&lt;div class="box"&gt;
&lt;p class="allowMargin"&gt;You are now logged in, &lt;span class="capatalize"&gt;&lt;span class=""&gt;Colonel Jack O'Neill&lt;/span&gt;&lt;/span&gt;. You can find all your information here, or links to other pages with that information on them. Enjoy your self, and remember, you never want to be &lt;span class="quote"&gt;One zat gun short of acually &lt;em&gt;having&lt;/em&gt; a zat gun&lt;/span&gt;!&lt;/p&gt;
&lt;/div&gt;
&lt;h2&gt;&lt;a href="javascript:close_box('notes')"&gt;Current Notes:&lt;/a&gt;&lt;/h2&gt;
&lt;div class="box" id="notes"&gt;

&lt;h3&gt;Notes&lt;/h3&gt;
&lt;p&gt;The green is inter-unit notes, and the blue are notes inside your unit, and the purple are notes from special people, like General Hammon or the medical staff.&lt;/p&gt;
&lt;table class="notes_table"&gt;
&lt;thead&gt;
&lt;th&gt;From&lt;/th&gt;
&lt;th&gt;To&lt;/th&gt;
&lt;th&gt;Important?&lt;/th&gt;
&lt;th&gt;Note text&lt;/th&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr style="background: #FEE2BC;"&gt;&lt;td colspan="4"&gt;&lt;strong&gt;No notes yet&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;tfoot&gt;
&lt;/tfoot&gt;
&lt;/table&gt;

&lt;/div&gt;
&lt;h2&gt;&lt;a href="javascript:close_box('mission')"&gt;Current Mission:&lt;/a&gt;&lt;/h2&gt;
&lt;div class="box" id="mission"&gt;

&lt;h3&gt;Info&lt;/h3&gt;
&lt;table class="teaminfo_table"&gt;
&lt;thead&gt;
&lt;th&gt;Progress&lt;/th&gt;
&lt;th&gt;Planet Designation&lt;/th&gt;
&lt;th&gt;Link to on-going roleplay&lt;/th&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr style="background: #FEE2BC;"&gt;&lt;td colspan="3"&gt;&lt;strong&gt;You are not currently in / your team is not undertaking a mission!&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;
&lt;tfoot&gt;
&lt;/tfoot&gt;
&lt;/table&gt;

&lt;/div&gt;
&lt;h2&gt;&lt;a href="javascript:close_box('teaminfo')"&gt;Team Info&lt;/a&gt;&lt;/h2&gt;
&lt;div class="box" id="teaminfo"&gt;

&lt;h3&gt;Team Leader&lt;/h3&gt;
&lt;p&gt;Since you are the leader of the team, Colonel, you have more control over the unit, and can do many more things. All (most) of those actions can be accessed here.&lt;/p&gt;

&lt;h3&gt;Team Users&lt;/h3&gt;
&lt;table class="teaminfo_table"&gt;
&lt;thead&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Title&lt;/th&gt;
&lt;th&gt;Bio&lt;/th&gt;
&lt;/thead&gt;
&lt;tbody&gt;

&lt;tr&gt;
&lt;td&gt;Jack O'Neill&lt;/td&gt;&lt;td&gt;Colonel&lt;/td&gt;&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Tilk&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;ReptiX&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;/tbody&gt;
&lt;tfoot&gt;
&lt;/tfoot&gt;
&lt;/table&gt;

&lt;p&gt;&lt;a href="/stargate/unit.php?mode=resignfromunit"&gt;Resign from SG 1&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;div id="footer"&gt;&lt;p&gt;&lt;a href="/stargate/login.php?logout&amp;amp;sid=a14ec42550df0fe4ac541bb0e60b18b3"&gt;Logout&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

×

Success!

Help @zachzach spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...