Log In · Register

 
 
Closed TopicStart new topic
DIV Positioning and Code help
dotAzn
post Jan 18 2009, 12:39 PM
Post #1


Newbie
*

Group: Member
Posts: 4
Joined: Jan 2009
Member No: 709,888



Well, I have been trying to make a DIV Overlay using this this image I made in Photoshop: http://img292.imageshack.us/img292/1083/ra...ivlayoutdh5.png

And I was following the stickied Div Overlay tutorial in this section. I tried using the folowing code:

Hide Comments:
CODE
<style type="text/css">
.contacttable,.whitetext12,.nametext,.lightbluetext8,.orangetext15,.blacktext12,
btext,.redtext,.redbtext{display:none;height:0px;!important;visibility:hidden}
td td td td{border:0px;width:0px;text-align:left;}
table,td,tr{padding:0px;width:;background-color:transparent}
table table table{padding:1px;height:.01%;width:100%;}
table table,table table table table,table,tr,td{height:0px;!important;border:0px;!important}
table table table table,table table table table td.text, td.text td.text table{display:none;}
td.text table table{display:inline;visibility:visible;}
table td table tr td.text table{visibility:hidden;}
table td table tr td.text table table,table td table tr td.text table table td.text{visibility:visible;}
</style>


Short CSS Code:
CODE
<style type=text/css>

body {
background-color: ######;
background-image: url("");
background-position: bottom right;
background-repeat: no-repeat;
background-attachment: fixed;
scrollbar-arrow-color:######;
scrollbar-track-color: ######;
scrollbar-shadow-color: ######;
scrollbar-face-color:######;
scrollbar-highlight-color:######;
scrollbar-darkshadow-color:######;
scrollbar-3dlight-color:######;}

table, tr, td {background-color: transparent; border: 0px; padding:2;}
table table {border: 0px;}
table table table table{border: 0px;}

{The actual modules}
table table table {border: 1px solid; border-color: ######; background-color: ######; }

{sets the default style for the body, table data, list data, divisions and text areas}
body,table, td, li, p, div, textarea
{font:normal 9px arial; color:######; font-weight:none; border:0px; text-transform: none; line-height:12px;}

{class for the basic font for the page}
.text {font:normal 9px arial; color:######; font-weight:none; border:0px; text-transform: none; line-height:12px;}

{style for the number of comments you have. The actual ..}
.redtext{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase; }

{style for the number of friends you have.}
.redbtext{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase; }

{”Blurbs”, “About Me”, “Who I’d like to Meet”, “Friend Space”, and “Friend’s Comments” style}
.orangetext15{font-family: arial; color: ######; font-weight: bold; font-size: 20px; letter-spacing: -2px;}

{”General”, “Music”, “Movies”, “Television”, “Books”, “Heros”, “Status”, “Here for”, “Hometown”, “Body Type”, “Ethnicity”, “Religion”, “Sign”, “Smoke/Drink”, “Children”, “Education”, “Occupation”, and “Income” title style}
.lightbluetext8{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase; }

{”Contacting”, “Interests”, “Details”, and “Schools” title styling}
.whitetext12{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}

{”In your extended network” style}
.blacktext12{font-family: arial; color: ######; font-weight: bold; font-size: 20px; letter-spacing: -2px; }

{Stylizing of your name above your picture }
.nametext{font-family: arial; color: ######; font-weight: bold; font-size: 30px; letter-spacing: -3px; line-height: 35px;}

{date stamp on comments}
.blacktext10{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}

{This is how all anchor points will be displayed; anchor points appear before all links.}
a{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase; }
a:link{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a:active{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a:visited{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a:hover{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}

{”View all friends” and “invite more” link style}
a.redlink{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a.redlink:link{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a.redlink:active{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a.redlink:visited{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase; }
a.redlink:hover{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}

{2 links in very top on the left, and the 13 links above your picture with make the navigation bar}
a.navbar{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a.navbar:link{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a.navbar:active{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a.navbar:visited{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a.navbar:hover{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}

{Default Links}
a:link, a.man{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase; letter-spacing: 0px;}
a:active{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a:visited{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}
a:hover{font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase;}

{bolded words}
.standard b, p b, B, strong {
font-family:arial; font-size:9px; color:######; font-weight:none;border:0px; text-transform: uppercase; }

</style>


And the Image Code:
CODE
<div class="bg" style="position: absolute; left:0px; top:0px; width:000px; height:000px; overflow: hidden;">
<img src="http://img292.imageshack.us/img292/1083/ragnarokdivlayoutdh5.png">
</div>

I also don't know what dimensions to put for Left, Top, Winth, Height, etc. Can anyone help?
 
Harp
post Jan 18 2009, 01:03 PM
Post #2


Senior Member
******

Group: Official Member
Posts: 2,936
Joined: Sep 2008
Member No: 683,235



What is your main question?
For the Left, Top, Width, and Hight:
Left is where the overly image is positioned (from sided to side)
Top is how far the overlay image is from the top of the page.
Width is...well, the width of your image. You can find this using photoshop.
And the hight is the hight of your image, which you can also find using photoshop.

You really have to mess around with numbers for Left and Top until you find what suits you thumbsup.gif
 
dotAzn
post Jan 18 2009, 01:27 PM
Post #3


Newbie
*

Group: Member
Posts: 4
Joined: Jan 2009
Member No: 709,888



Well, I can't really "explain". So, I'm just going to show you:
http://myspace.com/pilipinoperson

The dimensions:

Top: 50%
Left: 50%

Width: 1006
Height: 950
 
Mickey
post Jan 18 2009, 03:52 PM
Post #4


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



^I didn't understand that but anyway, try replacing your image code with this:

CODE
<div class="bg" style="position: absolute; left:50%; margin-left:-503px; top:0px; width:1006px; height:950px; overflow: hidden;">
<img src="http://img292.imageshack.us/img292/1083/ragnarokdivlayoutdh5.png">
</div>

That should make the image centered horizontally. Just replace the 0 on the top property with however much pixels you want it to go down by from the top of the page. If that doesn't answer your question, please clarify it.
 
dotAzn
post Jan 19 2009, 12:16 AM
Post #5


Newbie
*

Group: Member
Posts: 4
Joined: Jan 2009
Member No: 709,888



QUOTE(Mike @ Jan 18 2009, 12:52 PM) *
^I didn't understand that but anyway, try replacing your image code with this:

CODE
<div class="bg" style="position: absolute; left:50%; margin-left:-503px; top:0px; width:1006px; height:950px; overflow: hidden;">
<img src="http://img292.imageshack.us/img292/1083/ragnarokdivlayoutdh5.png">
</div>

That should make the image centered horizontally. Just replace the 0 on the top property with however much pixels you want it to go down by from the top of the page. If that doesn't answer your question, please clarify it.

Well, that works. I read over the positioning guidelines and crap, and I got it right. Mods can move to Solved Section. _smile.gif
 
Mickey
post Jan 19 2009, 04:44 AM
Post #6


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Topic closed & moved.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: