Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Vertical Align Google Ad
Old 08-31-2007, 08:26 PM Vertical Align Google Ad
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
I'm trying to put a google ad on the right-center side of my site's header. Here is the code I tried so far:

Code:
<div align="right" style="vertical-align:middle;"> 
(google adsense code) </div>
This puts it to the right, but it still lies at the top of the page, and I don't know how to center it. I tried changing some different things, like trying valign, etc. but still no luck.
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
 
Register now for full access!
Old 08-31-2007, 10:16 PM Re: Vertical Align Google Ad
Experienced Talker

Posts: 49
Trades: 0
what's the height of the header?
__________________
Time to upgrade your website! Visit us at:
Please login or register to view this content. Registration is FREE
.
- Professionals Designs with Details
Cyrus is offline
Reply With Quote
View Public Profile
 
Old 08-31-2007, 10:34 PM Re: Vertical Align Google Ad
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
I think it is 210px. The site with the header I'm trying to adjust is the one in my sig.
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 08-31-2007, 10:41 PM Re: Vertical Align Google Ad
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
If you divs can have fixed sizes, you can try something like this. You just need to do the math a little bit.

HTML Code:
<style type="text/css">
<!--
body {
}

#head {
    width: 100%;
    height: 200px;
    background-color: #666666;
        position: relative;

}

#right {
    width: 200px;
    height: 50px;
    background-color: #000099;
    float: right;
    position: relative;
    margin-top: 75px;
    margin-bottom: 75px;
}
#left {
    width: 500px;
    height: 150px;
    background-color: #990000;
    float: left;
    position: relative;
}
-->
</style>
</head>

<body>


<div id="head">
<div id="left">
<h2>This is a test</h2>
</div>

<div id="right">Test</div>
</div>


</body>
</html>
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 08-31-2007, 10:48 PM Re: Vertical Align Google Ad
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
I'm not sure about all that code (I'm using wordpress), all I want to do is put my ad on the right, in the center of the header, not worry about all the sizes, colors, etc.
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 08-31-2007, 11:00 PM Re: Vertical Align Google Ad
Experienced Talker

Posts: 49
Trades: 0
<div align="right" style="padding-top:7%">
(google adsense code) </div>
__________________
Time to upgrade your website! Visit us at:
Please login or register to view this content. Registration is FREE
.
- Professionals Designs with Details
Cyrus is offline
Reply With Quote
View Public Profile
 
Old 09-01-2007, 12:09 AM Re: Vertical Align Google Ad
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
Thank you
That did the trick
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Reply     « Reply to Vertical Align Google Ad
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.56586 seconds with 12 queries