jblack
Members-
Posts
48 -
Joined
-
Last visited
jblack's Achievements
Newbie (1/7)
0
Reputation
-
The solution was to set the parent element containing the drop down menu to position: relative and then use left: 0 on the .dropMenu class. In the HTML above I denoted where everything was pushed down.
-
Well, I fixed it through other means, cleaned up a lot of junk that was lying around from numerous failed attempts. In the end I changed to using <div> and <span> and cleared everything up.
-
Essentially what's going on is I've created 2 drop down menus and the drop down menu with the most items pushes the content I want to put in the body of my table down. I've thrown various things at it and am yet to succeed in correcting this problem. I've read around and, though I may be totally off, what I understand is that the z-index of the parent element is affecting this. I am at a loss as of now and have finally come to ask the question. Here's what I've got for you: <style> body { background-color: #000000; color: #8c8c8c; margin: 0; } table.main { background-color: #0a0a0a; border: 0px; padding: 0px; width: 960px; height: 100%; border-spacing: 0px; } td.banner { height: 175px; } td.navbg { background-image: url("images/ccNavBG.gif"); height: 32px; } table.nav { border: 0px; padding: 0px; border-spacing: 0px; margin-left: auto; margin-right: auto; position: relative; } .dropMenu { background-color: #0a0a0a; width: 98px; visibility: hidden; z-index: 5; color: 8c8c8c; border-left: 1px solid #141414; border-right: 1px solid #141414; border-bottom: 1px solid #141414; display: block; position: absolute; } a { text-decoration: none; } table.adminBar { position: fixed; z-index: 3; right: -128px; width: 160px; height: 192px; padding: 0px; border-spacing: 0px; top: 25% } td.adminBarBG { width: 32px; background-image: url("http://crimsoncourt.hollosite.com/design2/images/adminBarBG.gif"); background-repeat: repeat-y; } td.adminNav { background-color: #0a0a0a; width: 128px; } span.adminHead { text-align: center; width: 128px; padding: 0px; font-size: 110%; } ul.adminFunc { list-style-type: none; padding: 0px; } table.content { padding: 0px; width: 900px; } span.contentHeader { margin-left: 32px; width: 300px; font-size: xx-large; } table.container { border: 1px solid #8c8c8c; border-radius: 10px; position: relative; z-index: 1; } td.news { width: 350px; padding: 32px; height: 200px; } td.poll { width: 200px; padding: 32px; } span.tags { font-size: x-small; } </style> And the HTML: <table class="main" align="center"> <tr> <td class="banner"><img src="images/ccBanner.gif"/></td> </tr> <tr> <td class="navbg" align="center"> <table class="nav"> <tr> <td><a href="index.php"><img src="images/navHome.gif" /></a></td> <td onmouseover="menuShow(1)" onmouseout="menuHide(1)" style="position: relative;"><a href="clan.php"><img src="images/navClan.gif" /></a> <table class="dropMenu" id="1"> <tr> <td><a href="clan.php?action=about">About</a></td> </tr> <tr> <td><a href="clan.php?action=members">Members</a></td> </tr> <tr> <td><a href="clan.php?action=mypage">My Page</a></td> </tr> <tr> <td><a href="clan.php?action=myfiles">My Files</a></td> </tr> <tr> <td><a href="clan.php?action=rules">Rules</a></td> </tr> </table> </td> <td onmouseover="menuShow(2)" onmouseout="menuHide(2)" style="position: relative;"><a href="events.php?action=current"><img src="images/navEvents.gif" /></a> <table class="dropMenu" id="2"> <tr> <td>- <a href="events.php?action=new">New</a></td> </tr> <tr> <td>- <a href="events.php?action=current">Current</a></td> </tr> <tr> <td>- <a href="events.php?action=auction">Auctions</a></td> </tr> </table> </td> <td><a href="chat.php"><img src="images/navChat.gif" /></a></td> <td><a href="forums/"><img src="images/navForums.gif" /></a></td> <td><a href="games.php"><img src="images/navGames.gif" /></a></td> <td><a href="contact.php"><img src="images/navContact.gif" /></a></td> <td><a href="gallery.php"><img src="images/navGallery.gif" /></a></td> </tr> </table> </td> </tr> <tr><td> here is where all the content is pushed down <table class="content" align="center"> <tr> <td><span class="contentHeader">News</span></td> </tr> <tr> <td> <table class="container"> <tr> <td class="news"> <b>Update: Site Status</b><br /> <span class="tags">Posted 11/14/2013</span><br /><br /> Content going in here </td> <td class="poll"> stuff going in here </td> <td class="news"> stuff going in here </td> </tr> </td> </table> </table> </td></tr> </table>
-
*Edit -- After working at it I figured my problem out. I made a terrible mistake.
-
LOL its the city council... I was thinking of making it semi transparent anyway...Thanks, I'll see what I can do.
-
Ok, so my town's Chamber of Commerce website is crappy and I get to fix it up. I have no I dea how to make this work, sincethey're requiring me to use this image as a background image on the first page:What should I do?
-
Alright, it only downloads in IE for me. In Fire Fox I get: Fatal error: Call to undefined function: mysql_connect() in /home/www/etherea.obliviousrealms.com/includes/db.php on line 7Which I shouldn't get, because I've never had any problem with it in a .html file or a .php file.
-
Now it just makes it download the file...how do I fix this?
-
I want to use php in .eae file extensions, but I can't figure this out. I was told to use an htaccess AddHandler command and this is what I did, but it doesn't work:AddHandler cgi-script .eaeAnd yes, I do have htaccess on my server. Is htaccess the way to go, or is there a different way to do this?
-
...But how does the actual "->" work?
-
I have seen -> in many online scripts and I'm just wondering how that works, I'm not all that new to php, but I haven't been able to figure this out.
-
its just in a text file
-
Ok, so I want to know how I would use a person's recorded IP address with $REMOTE_ADDR to authenticate in cooperation with sessions. I know how to insert data and update with php into Mysql databases, but how would I auth people based on their IP recorded in the database?
-
Alright...I don't quite understand what your saying. You shouldn't even need php to popup an error box. you could do something like this: <HTML> <HEAD> <TITLE>Register</TITLE> <script> function doCheck() { int username = document.forms[0].elements[0].value; int password = document.forms[0].elements[1].value; int email = document.forms[0].elements[2].value; if(username == '' || password == '' || email == '') { alert("All fields are required!"); } else { document.forms[0].submit(); } } </SCRIPT> </HEAD> <BODY> <TABLE ALIGN="center" WIDTH="50%"> <TR> <TD> <FORM ACTION="doRegister.php" METHOD="Post"> Username: </TD> <TD> <INPUT TYPE="text" name="username"> </TD> </TR> <TR> <TD> Password: </TD> <TD> <INPUT TYPE="text" name="password"> </TD> </TR> <TR> <TD> Email: </TD> <TD> <INPUT TYPE="text" name="email"> </TD> </TR> <TR> <TD colspan=2 align="center"> <INPUT TYPE="button" VALUE="Register" onClick="doCheck()"> </TD> </TR> </TABLE> </BODY></HTML> I wouldn't recommend using this though. It's not always secure and can be edited and changed and used from a person's desktop. A good thing to do with this is check your referrer on the doRegister.php page.
-
Alright, I'm trying to find out how to do this, I can't figure it out though. It has to unscrable 10 words and put it in the order like: word1, word2, word3... It comes from a wordlist.*Also unrelated: how to make it so a url like http://www.mysite.com/dir/2/ would be redirected to thispage.php? or would I just have to make thispage.php=index.php?