Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 10-12-2011, 11:30 AM
Contributing Member
Latest Blog:
None

 
Join Date: 08-28-10
Posts: 117
iTrader: 0 / 0%
Centering Google Banner Ads

Hi,

Assuming the use of HTML/CSS, what's the best way to center a google banner ad unit?

Thanks for your help,

Frank
__________________
The International Foundation for Information Technology (IF4IT)
Open IT Standards and Best Practices
 
Reply With Quote
  #2 (permalink)  
Old 10-12-2011, 02:41 PM
Contributing Member
Latest Blog:
To have no pride

 
Join Date: 04-05-11
Location: Peru
Posts: 214
iTrader: 0 / 0%
I read it once. You use <center>script</center>, and change your web page to transitional.
__________________
I am the author of Heptagrama, and the SEO guy at InTechCenter.
 
Reply With Quote
  #3 (permalink)  
Old 10-13-2011, 03:25 AM
JohnnyS's Avatar
Contributing Member
 
Join Date: 07-05-11
Location: philippines
Posts: 312
iTrader: 0 / 0%
Quote:
Originally Posted by Guerino1 View Post
Hi,

Assuming the use of HTML/CSS, what's the best way to center a google banner ad unit?

Thanks for your help,

Frank
you can try this...
HTML Code:
<div style="width:600px; margin:0 auto;"><!-- put your ad code here... --></div>
the 600px width can be changed into the width of the ad
 
Reply With Quote
  #4 (permalink)  
Old 10-13-2011, 06:36 AM
Contributing Member
Latest Blog:
None

 
Join Date: 08-28-10
Posts: 117
iTrader: 0 / 0%
Hi,

Thanks for the responses.

May I ask:

1) What does it mean to change a web page to "transitional"?
2) How is it done?

Thanks,

FG
__________________
The International Foundation for Information Technology (IF4IT)
Open IT Standards and Best Practices
 
Reply With Quote
  #5 (permalink)  
Old 10-13-2011, 10:34 AM
HTMLBasicTutor's Avatar
Administrator
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 20,836
iTrader: 5 / 100%
Quote:
Originally Posted by Guerino1 View Post
Hi,

Thanks for the responses.

May I ask:

1) What does it mean to change a web page to "transitional"?
2) How is it done?

Thanks,

FG
Transitional refers to the type of DOCTYPE declaration you are using on the site.

At the top of your source code there is a DOCTYPE declaration. Use the View/Source function in your browser to see the source code. It should be the first line in the source code.

The using <center></center> option given is not good. The center set of tags was deprecated ages ago.

JohnnyS' solution is better.

Even better would be to create a class called center so it is recyclable elsewhere in the site.
__________________

HTML Basic Tutor - Learn how to code for better SEO
Basic Computer Information - Computer & internet basics for website owners

SEO troubleshooting and review services available. - Pm me.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
div vertical centering detoam Web Design Lobby 2 03-24-2011 10:28 AM
CSS Menu Centering sanguinerane Coding Forum 5 10-06-2010 02:00 AM
Layout Centering with CSS SofreeWeb Coding Forum 2 08-18-2009 05:52 AM
Centering Images mack77 Web Design Lobby 6 12-18-2008 06:32 AM
CSS Menu centering mat4020 Coding Forum 8 03-26-2008 05:38 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 09:05 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2014 Escalate Media




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.