Customizing SMF > SMF Coding Discussion

A few questions.

(1/1)

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;"', '>

--- End quote ---

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">
--- End quote ---

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

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.

[Unknown]:
Use \' instead of ' in hte javascript code.

-[Unknown]

Meepo:
Thank you both! Its working now  :)

Navigation

[0] Message Index

Go to full version