PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Schmitt
New Member
New Member


Joined: Nov 27, 2005
Posts: 22

PostPosted: Fri Aug 01, 2008 8:27 am Reply with quote Back to top

Hi,
Can someone tell me how to autosize the header for different resolutions.
I am using the fisubice theme on ravennuke 7.6 but have changed the header to a picture of my own. Is there a way to ensure the picture resizes depending on the visitors screen res.
Here's my header.html

Code:
<br /><table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
   <tr>
      <td align="center" valign="top"></td></tr></table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
        <td width="100%" valign="middle"><a href="http://www.kt-flying.co.uk" title="G ATKT"</a><div align="center"><img src="themes/fisubice/images/ktflyinglogo_final.jpg" alt="G ATKT" border="0" /></td>
  </tr>
</table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellpadding="4" cellspacing="0" style="background-image: url(themes/fisubice/images/cellpic_nav.gif)">
            <tr>
              <td width="165" nowrap="nowrap"><font class="content">$theuser</font></td>
              <td nowrap="nowrap"><div align="center"><font class="content">$navMenu</font></div></td>
              <td width="165" nowrap="nowrap"><div align="center"><font class="content">
$datetime
                  </font></div></td>
            </tr>
          </table></td>
      </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
      <tr valign="top">
        <td align="center">$public_msg</td>
</tr></table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr valign="top">
  <td valign="top" width="1" style="background-image: url(themes/fisubice/images/7px.gif)">


Thanks For any help

Edit: Have used code tag as suggested in following post.


Last edited by Schmitt on Sat Aug 02, 2008 2:25 am; edited 2 times in total
View user's profile Send private message
jestrella
Worker
Worker


Joined: Dec 01, 2005
Posts: 142
Location: Santiago, Dom. Rep.

PostPosted: Fri Aug 01, 2008 12:12 pm Reply with quote Back to top

shame on you man Dance-Y use the [ code ] tag
would be very handy to have a screenshot of your site
View user's profile Send private message Visit poster's website
jestrella
Worker
Worker


Joined: Dec 01, 2005
Posts: 142
Location: Santiago, Dom. Rep.

PostPosted: Fri Aug 01, 2008 12:31 pm Reply with quote Back to top

remember to try things locally and if they work then upload to server. try this out...

PD:
*you have some nasty code in your file that should be correct in the following piece of code.
*the font tag is deprecated, you must start using span and/or css

Code:
<table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
   <tr>
      <td align="center" valign="top"></td>
   </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <td width="100%" valign="middle"><a href="http ://www.websiteaddress.co.uk" title="title"><img src="themes/fisubice/images/logo.jpg" alt="title" border="0" width="100%" /></a></td>
   </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
      <td>
         <table width="100%" border="0" cellpadding="4" cellspacing="0" style="background-image: url(themes/fisubice/images/cellpic_nav.gif)">
            <tr>
               <td width="165" nowrap="nowrap"><font class="content">$theuser</font></td>
               <td nowrap="nowrap"><div align="center"><font class="content">$navMenu</font></div></td>
               <td width="165" nowrap="nowrap" align="center"><font class="content">$datetime</font></td>
            </tr>
         </table>
      </td>
   </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
   <tr valign="top">
      <td align="center">$public_msg</td>
   </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
   <tr valign="top">
      <td valign="top" width="1" style="background-image: url(themes/fisubice/images/7px.gif)">
View user's profile Send private message Visit poster's website
Schmitt
New Member
New Member


Joined: Nov 27, 2005
Posts: 22

PostPosted: Sat Aug 02, 2008 2:24 am Reply with quote Back to top

Thanks Slaytonic that worked a treat.




Quote:
*the font tag is deprecated, you must start using span and/or css


Could you explain this a little more please.

Many Thanks
View user's profile Send private message
jestrella
Worker
Worker


Joined: Dec 01, 2005
Posts: 142
Location: Santiago, Dom. Rep.

PostPosted: Sun Aug 03, 2008 7:50 am Reply with quote Back to top

Schmitt wrote:
Thanks Slaytonic that worked a treat.

Quote:
*the font tag is deprecated, you must start using span and/or css


Could you explain this a little more please.



what i mean with this is that instead of using the font tag (<font>) for text appearance you should use span tag plus css styles (<span style="some css here;">). For example...

Wrong:
Code:
<font class="content" size="x-big">your text here</font>



Right:
Code:
<span class="content" style="font-size: 10px">your text here</span>


This is just a simple example. Btw, is not Slaytonic but Slaytanic
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7452
Location: Arizona

PostPosted: Sun Aug 03, 2008 9:14 am Reply with quote Back to top

Schmitt, most browsers still support the font tag as it is XHTML 1.0 Transitional and HTML 4.01 Transitional. But, if you are writing new code, it is better to start shying away from deprecated XHTML/HTML.
View user's profile Send private message Visit poster's website
Schmitt
New Member
New Member


Joined: Nov 27, 2005
Posts: 22

PostPosted: Sun Aug 03, 2008 2:24 pm Reply with quote Back to top

OK Thanks for the good advice.

and sorry for the wrong name slaytanic
View user's profile Send private message
jestrella
Worker
Worker


Joined: Dec 01, 2005
Posts: 142
Location: Santiago, Dom. Rep.

PostPosted: Sun Aug 03, 2008 5:17 pm Reply with quote Back to top

nevermind bro... we're cool
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum