News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

A few questions.

Started by Meepo, July 04, 2004, 01:44:56 PM

Previous topic - Next topic

Meepo

Hey everyone, First off I hope I posted this in the right spot, if not I apologize. I was hoping someone could help me out with a few things. I replaced the 'forum name text' with the logo I wanted but I'm having trouble centering it.. here is the code I have:

Quote               

<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" styl
e="position: relative;">
                        <td colspan="2" valign="bottom" style="padding: 5px; font-family: Georgia,
serif; font-size: xx-large; white-space: nowrap;">

<a href="hxxp:www.phantasia4.com/ [nonactive]" target="_top"><img src="hxxp:www.phantasia4.com/web [nonactive]
page/phorumlogo.gif" width="600" border="0" style="float: Left;" alt="HomePage" /></a>

</tr>
                        <tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' styl
e="display: none;"', '>

The other problem I have ran into is with adding a javascript of my own to the page. I use a dropdown menu for all my webpages and would like to add it directly underneath the logo but for some unknown reason I cant figure out how to do it. I know HTML fairly well but I'm rather new to this PHP stuff  ;) the java scripts I use for my web pages look like this:

in the <head>
Quote<link rel="stylesheet" type="text/css" href="/webpage/phantasia4.css">

and then in the <body>
Quote<script type="text/javascript">showMenus(1,'Horizontal')</script>

Thanks for any and all help given  :D

-- Meepo

edit: Also my webpage can be found at hxxp:www.phantasia4.com [nonactive] and forum at hxxp:www.phantasia4.com/forum [nonactive]

kegobeer

Your table isn't properly designed: you've forgotten a <tr> after your <table> statement, and a closing </td> before the </tr>.  That should fix your centering problem.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

[Unknown]

Use \' instead of ' in hte javascript code.

-[Unknown]

Meepo

Thank you both! Its working now  :)

Advertisement: