The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> centering help...
learningcoding
post Jan 31 2011, 09:44 PM
Post #1





Group: Members
Posts: 7
Joined: 27-January 11
Member No.: 13,727



I cannot get this centering thing to work! I've tried everything that I can find resources for, my website is "http://www.replayyoutube.com/watch?v=TyOaO3fvyt0" (the link playing on it was my attempt to figure out what i was doing wrong, it didn't help)

you can see my attempt at centering through my code for my "Adstyle"
CODE
.ADStyle {
    position:relative;
    width:728px;
    margin:auto;
    top: 175px;
}


CODE
<span class="ADStyle">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1302892494333461";
/* ReplayYoutube */
google_ad_slot = "8420746930";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</span>


it does center it, but my problem is that it centers it by the left edge of the ad, so i end up with the ad actually off the the right, I can't figure out how to make it center the ad, on the center of the ad

thanks in advance for any help !
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
learningcoding
post Feb 1 2011, 12:22 AM
Post #2





Group: Members
Posts: 7
Joined: 27-January 11
Member No.: 13,727



problem solved, I kept wondering how I could change the position at which the objects where centering themselves on, and now I know that's wat clipping means!

http://css-tricks.com/quick-css-trick-how-...-in-the-center/

after hours of laboring trying to figure it out -.-
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th February 2019 - 06:19 PM