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


Topic # 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
5785 posts

Uber Geek
+1 received by user: 137

Mod Emeritus
Trusted
Lifetime subscriber

  Reply # 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

 


8025 posts

Uber Geek
+1 received by user: 387

Trusted
Subscriber

  Reply # 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
60788 posts

Uber Geek
+1 received by user: 11667

Administrator
Trusted
Geekzone
Lifetime subscriber

  Reply # 191313 22-Jan-2009 15:03
Send private message

If the image is bigger than the TD hosting it then it won't center in some browsers. Could this be the problem?






411 posts

Ultimate Geek


  Reply # 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


  Reply # 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
+1 received by user: 4

Trusted

  Reply # 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
5785 posts

Uber Geek
+1 received by user: 137

Mod Emeritus
Trusted
Lifetime subscriber

  Reply # 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 »

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 »

Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07



Geekzone Live »

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



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.