Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




411 posts

Ultimate Geek


# 29885 22-Jan-2009 13:06
Send private message

I have this bit of code:

    <td class="row-left" valign="top"><img src="{T_THEME_PATH}/images/row_left_top.gif" width="4" height="100" alt="" /></td>
    <td align="center" valign="top" id="header">
        <div id="logorow">
            <div id="logo-left"><div id="logo-right">
                <div align="centre"><a href="{U_INDEX}">{SITE_LOGO_IMG}</a>
              </div>
            </div></div>
        </div>

the line in bold is the one that I am trying to change.

I want the image to sit in the middle of the page, but it wont. It sits in the top left no matter what is put there, left, centre or right.

How can I change it so that I can put it in the centre, floating.




-- Divett Enterprises -- The Power Of Tomorrow --

Create new topic
I iz your trusted friend
5846 posts

Uber Geek

Mod Emeritus
Trusted
Lifetime subscriber

  # 191287 22-Jan-2009 13:12
Send private message

The easiest way is:

<div align="centre"><a rel='nofollow' href="{U_INDEX}">{SITE_LOGO_IMG}</a></div>


<div style="text-align:center;" ><a rel='nofollow' href="{U_INDEX}">{SITE_LOGO_IMG}</a></div>




Internet is my backyard...

 

«Geekzone blog: Tech 'n Chips Takeaway» «Personal blog: And then...»

 

Please read the Geekzone's FUG

 


8034 posts

Uber Geek

Trusted

  # 191299 22-Jan-2009 13:47
Send private message

Post a screenshot of how you want it to look and I'll create a sample for you of how it's done properly with xhtml and css.

 
 
 
 


BDFL - Memuneh
64657 posts

Uber Geek

Administrator
Trusted
Geekzone
Lifetime subscriber



411 posts

Ultimate Geek


  # 191324 22-Jan-2009 15:54
Send private message

Cheifie's solution worked perfectly :D

Thanks heaps guys!




-- Divett Enterprises -- The Power Of Tomorrow --

115 posts

Master Geek


  # 191353 22-Jan-2009 17:34
Send private message

It could have just been the spelling of centre. Would the original code have worked with "center" replacing "centre"?

2483 posts

Uber Geek

Trusted

  # 191368 22-Jan-2009 19:40
Send private message

This is usually a problem in standard compliant browsers - as stuff like align="abc" are deprecated in favour of the use of CSS styles (style="abc").




Find me on Twitter!

I posted 1, 2 x 10^3 times!

I iz your trusted friend
5846 posts

Uber Geek

Mod Emeritus
Trusted
Lifetime subscriber

  # 191375 22-Jan-2009 20:55
Send private message

Well technically, the div align is telling div itself to be centered and not its child. AND think American spelling.




Internet is my backyard...

 

«Geekzone blog: Tech 'n Chips Takeaway» «Personal blog: And then...»

 

Please read the Geekzone's FUG

 


Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Logitech introduces new Made for Google keyboard and mouse devices
Posted 16-Oct-2019 13:36


MATTR launches to accelerate decentralised identity
Posted 16-Oct-2019 10:28


Vodafone X-Squad powers up for customers
Posted 16-Oct-2019 08:15


D Link ANZ launches EXO Smart Mesh Wi Fi Routers with McAfee protection
Posted 15-Oct-2019 11:31


Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29


Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24


Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59


Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07


Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02


Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41


Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36


2degrees Reaches Milestone of 100,000 Broadband Customers
Posted 1-Oct-2019 09:17


Nokia 1 Plus available in New Zealand from 2nd October
Posted 30-Sep-2019 17:46


Ola integrates Apple Pay as payment method in New Zealand
Posted 25-Sep-2019 09:51


Facebook Portal to land in New Zealand
Posted 19-Sep-2019 18:35



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.