SourceDevelop
  • Home
  • Learn A Language
  • Articles & Tutorials
  • Forums
  • Other Resources
Visual Basic HTML/CSS PHP/MySQL
PHP MySQL More Resources
index Forums Index Search Search Member List Member List Help Help

  • Search
  • Member List
  • Calendar
  • Help

Welcome Guest ( Login | Register )


Latest News: We share our revenue with our members, click here for more details.
SourceDevelop > Programming and Web Design > HTMS/CSS/Javascript/PHP/MySQL > How 'Align Center'.

Partners:
TV & Dinner MorningStarr RustyWalrus Josechukkiri

Post Reply  Post Thread 
Threaded Mode | Linear Mode
How 'Align Center'.
Author Message
josechukkiri


Bronze Junior Member
*

Group: Members
Posts: 25
Joined: Dec 2007
Status: Offline
Reputation: 0
SD$: 25
Post: #1
How 'Align Center'.

My website http://josechukkiri.110mb.com have an google ad on top of the website. It is left aligned normally. How I can align it center. I tried <align='center'></center>
Can some body suggest a code-ling.


Visit:
http://josechukkiri.110mb.com
http://amma.phpnet.us
http://trinitycreations.bravehost.com


12-31-2007 11:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Brian


Member
*

Group: Administrators
Posts: 289
Joined: Feb 2006
Status: Offline
Reputation: 0
SD$: 328
Post: #2
RE: How 'Align Center'.

To Align that center, simply change your code to be as follows:

Code:
<center>Google ad code here</center>


That should center it on your page for you, with the least amount of effort, although using some css might be a slightly better alternative (especially if you move the styling code to an external file). This would allow you to change how your website looks in the future a lot easier. Something more like the code below is the easiest of these examples:

Code:
<div id="topSponsorAd" style="text-align: center; width: 100%;">Google ad code here</div>


Hope this helps!

Also, this topic belongs in the HTML/CSS category.

-Topic Moved-


Brian
01-01-2008 12:17 AM
Find all posts by this user Quote this message in a reply
josechukkiri


Bronze Junior Member
*

Group: Members
Posts: 25
Joined: Dec 2007
Status: Offline
Reputation: 0
SD$: 25
Post: #3
RE: How 'Align Center'.

Thank you Brian. The second code I think I can try . The first one I tried and failed.


Visit:
http://josechukkiri.110mb.com
http://amma.phpnet.us
http://trinitycreations.bravehost.com


01-01-2008 01:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Brian


Member
*

Group: Administrators
Posts: 289
Joined: Feb 2006
Status: Offline
Reputation: 0
SD$: 328
Post: #4
RE: How 'Align Center'.

The first one should work as well, i believe you have the code in an iframe, and so you would have:

Code:
<center><iframe>rest of google code here</iframe></center>


Brian
01-01-2008 11:08 AM
Find all posts by this user Quote this message in a reply
TVDinner


Gold Junior Member
*

Group: Members
Posts: 131
Joined: Jun 2007
Status: Offline
Reputation: 0
SD$: 128
Post: #5
RE: How 'Align Center'.

You could also put it in a column in the table and align the td tag with an align="center" inside the TD tag because the way the HTML is right now, it's not very clean and may not be rendered properly by some browsers.


POLITICAL DISGUST - http://www.politicaldisgust.com
TV and DINNER - http://www.TVandDINNER.com/forums
01-21-2008 09:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Wolverine


Bronze Junior Member
*

Group: Members
Posts: 41
Joined: Apr 2008
Status: Offline
Reputation: 0
SD$: 42
Post: #6
RE: How 'Align Center'.

If your table doesn't extend 100%, make sure the table itself is centered as well.


Posts Of The Day - Reward quality while getting more exposure.
04-06-2008 08:12 PM
Visit this user's website Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

Contact Us | SourceDevelop | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication

Powered By MyBB
Copyright © 2002-2009 MyBB Group