Positioning Absolute to Right
Moderator: General Moderators
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
Positioning Absolute to Right
Hello,
Ive just got google ads on my website. I would like to position them so they are always on the right, they are in their own div so It will be easy to identify. How would I do this with CSS ? I know, this is a simple question but I have been looking all over the place.
Thanks!
Ive just got google ads on my website. I would like to position them so they are always on the right, they are in their own div so It will be easy to identify. How would I do this with CSS ? I know, this is a simple question but I have been looking all over the place.
Thanks!
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
if it appears under your content, set the z-index property higher than other elements z-index (if any)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
How would I make text that runs into the ad wrap? In this book I have it shows the example of the float attribute and it says the text wraps around it.
thought this might be useful
Thanks!
thought this might be useful
Code: Select all
<style type=text/css>
#ads {
float:right;
}
#contents {
background-color:#4682B4;
border-color:white;
border-width:2px;
border-style:solid;
}
<style>
<div id=ads>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<br><br>
<div align=center id=contents>
<!--PAGE CONTENT BEGINS HERE-->
PAGE CONTENT IS IN HERE
<!--PAGE CONTENT ENDS HERE-->
</div>- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
Code: Select all
#ads {
float:right;
}That might/should help. If not, post your complete code here so I can check it out.