Log In · Register

 
coding for div
MoneyIsDaMotive
post Jul 24 2009, 03:18 AM
Post #1


Blazed
****

Group: Member
Posts: 294
Joined: Jun 2009
Member No: 732,840



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 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;}

{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>

<div class="bg" style="position: absolute; left:0px; top:160px; width:000px; height:000px; overflow: hidden;">
<img src="http://i25.tinypic.com/33vkc5c.jpg">
</div>



<div class="content" style="position: absolute; left:000px; top:000px; width:000px; height:000px; overflow: auto;"><center>
CONTENT FOR DIV.
</div>

Reason for edit: Please use [codebox] tags instead of [code] tags when posting longer codes. - Mike
 
 
Start new topic
Replies
Mickey
post Jul 25 2009, 09:30 AM
Post #2


Treasure Pleasure
********

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



Replace your content DIV with this:

CODE
<div class="content" style="position: absolute; top:#px; left:50%; margin-left:#px; width:156px; height:154px; overflow: auto; border:1px solid; border-color:000000;"><center>
CONTENT FOR DIV.
</div>

That should give it a border. Also, I replaced your positioning method with a more effective one. You seriously need to start getting used to that method. Anyway since you already have the links on your DIV image, just position transparent GIF image links over them like this:

CODE
<div style="position:absolute; top:#px; left:50%; margin-left:#px;">
<a href="URL"><img src="http://x.myspacecdn.com/modules/common/static/img/header/spacer.gif" style="height:#px; width:#px;" alt="" /></a><br />
<a href="URL"><img src="http://x.myspacecdn.com/modules/common/static/img/header/spacer.gif" style="height:#px; width:#px;" alt="" /></a><br />
<a href="URL"><img src="http://x.myspacecdn.com/modules/common/static/img/header/spacer.gif" style="height:#px; width:#px;" alt="" /></a>
</div>

Replace the pound symbols on the top and margin-left properties to position links around. Replace URL with the url of where you want each link to go. Replace the pound symbols on the height and width properties according to the sizes of the links on your layout design.
 
MoneyIsDaMotive
post Jul 25 2009, 09:48 AM
Post #3


Blazed
****

Group: Member
Posts: 294
Joined: Jun 2009
Member No: 732,840



thats harder what i did before
can you try and find the other code
for i can use photoshop with
this is how it went (i think)

i had to pick (in the info panel) pixals on the +
where the X and Y is. then i had to use the pointer tool
to all for corners of the "message, add, comment"
wait is that the code you just gave me?? i remember the "alt"
but if its not, can you try and find it for me _unsure.gif
 

Posts in this topic
SwaggLookinGood   coding for div   Jul 24 2009, 03:18 AM
Mike   You need to separate the HTML and CSS codes. I sug...   Jul 24 2009, 08:43 AM
SwaggLookinGood   wait wasnt it css on top and html on bottem before...   Jul 24 2009, 11:54 AM
Mike   On here: CODE<div class="bg" style=...   Jul 24 2009, 12:49 PM
SwaggLookinGood   okay so what does that fix?and i know i havent got...   Jul 24 2009, 12:53 PM
SwaggLookinGood   okay, keep this open till i figure this out which ...   Jul 24 2009, 01:03 PM
Mikeplyts   Yeah, it doesn't matter. You just have to at l...   Jul 24 2009, 01:05 PM
SwaggLookinGood   QUOTE(Mikeplyts @ Jul 24 2009, 01:05 PM) ...   Jul 24 2009, 01:07 PM
Mikeplyts   sure, why not. :) I prefer to make it a DIV class ...   Jul 24 2009, 01:07 PM
SwaggLookinGood   QUOTE(Mikeplyts @ Jul 24 2009, 01:07 PM) ...   Jul 24 2009, 01:11 PM
SwaggLookinGood   yeahh ill tell you 2night wasnt their a code for...   Jul 24 2009, 03:21 PM
Mike   Posts merged.   Jul 25 2009, 05:13 AM
SwaggLookinGood   nope im good, i got the image on, well positioned ...   Jul 25 2009, 07:24 AM
Mike   An image map code looks something like this: CODE...   Jul 25 2009, 09:58 AM
SwaggLookinGood   ohhh see i thought you mean something like this h...   Jul 25 2009, 10:01 AM
SwaggLookinGood   okay, you said getting use to the method.what meth...   Jul 25 2009, 10:05 AM
SwaggLookinGood   ok well im gonna switch the divs, the 1 you gave m...   Jul 25 2009, 10:13 AM
SwaggLookinGood   okay on that. post #9. can you explane how to do ...   Jul 25 2009, 10:43 AM
SwaggLookinGood   not yet. i had about a hour on it, i got the first...   Jul 26 2009, 12:18 AM
Mikeplyts   Man, I would help out but I'm too confused as ...   Jul 26 2009, 04:16 AM
SwaggLookinGood   Okay sorry, well first im gonna put my tables on ...   Jul 26 2009, 09:05 AM
SwaggLookinGood   after i press prt screen?   Jul 26 2009, 09:30 AM
SwaggLookinGood   then when i refresh click to enlarge you see ho...   Jul 26 2009, 09:47 AM
SwaggLookinGood   okay i want it like its' on firefox but maybe ...   Jul 26 2009, 10:49 AM
SwaggLookinGood   ANY WAY to have it showing again?? man, can't...   Jul 26 2009, 10:55 AM
SwaggLookinGood   wow thats alot better. thanks now im gonna put th...   Jul 26 2009, 10:25 PM
Mike   That look good, mate. Really nice. To only make th...   Jul 27 2009, 06:46 AM
SwaggLookinGood   okay thaank you, and sence the bottom box is for p...   Jul 27 2009, 06:34 PM
SwaggLookinGood   and that goes with the other code you gave me for ...   Jul 27 2009, 07:25 PM
SwaggLookinGood   alright so don't change my code? just change ...   Jul 27 2009, 07:58 PM
SwaggLookinGood   Last night, i completed the layout, its all done, ...   Jul 28 2009, 09:05 AM
SwaggLookinGood   what did i assign?   Jul 28 2009, 03:47 PM
SwaggLookinGood   Ohhhh i thought you can do that, then. okay. so ho...   Jul 28 2009, 03:56 PM
SwaggLookinGood   i put your code in, and the links stay now but it ...   Jul 28 2009, 04:02 PM
SwaggLookinGood   it says i have to use ms paint, can't i just p...   Jul 28 2009, 08:18 PM
SwaggLookinGood   shiii i can't get this i don't understand....   Jul 28 2009, 09:07 PM
SwaggLookinGood   QUOTE-Check the attributes of the image, and doubl...   Jul 28 2009, 09:31 PM
SwaggLookinGood   so when it says to upload my hover image, it means...   Jul 29 2009, 08:20 AM
SwaggLookinGood   wait let me check first cause maybe it didnt. i ...   Jul 29 2009, 08:28 AM
SwaggLookinGood   anything yet?   Jul 29 2009, 09:12 AM
SwaggLookinGood   THEY WORK!!! THANK YOU! can you ex...   Jul 29 2009, 09:17 PM
SwaggLookinGood   its not the bottem links, but you can scroll down ...   Jul 30 2009, 08:45 PM
tcunningham   Use of {visibility:hidden} renders the element inv...   Jul 31 2009, 05:21 AM
SwaggLookinGood   what part of the code??   Jul 31 2009, 05:39 AM
tcunningham   Try all instances of it. If that doesn't work,...   Jul 31 2009, 05:58 AM
SwaggLookinGood   so if i see {visibility:hidden} change it?   Jul 31 2009, 06:18 AM
tcunningham   You can see if that'll fix the problem, I...   Jul 31 2009, 06:23 AM
SwaggLookinGood   CODE.contacttable,.whitetext12,.nametext,.lightblu...   Jul 31 2009, 10:44 AM
SwaggLookinGood   ah i did? it fixed the rollovers, but not the bot...   Jul 31 2009, 11:34 AM
SwaggLookinGood   IT WORKS! daamn, haha thank you. IM DONE. but...   Jul 31 2009, 11:50 AM
SwaggLookinGood   okay so im gonna just take the top off, here some...   Jul 31 2009, 12:16 PM
SwaggLookinGood   okay heres something i found on CB here. see whe...   Jul 31 2009, 03:44 PM
SwaggLookinGood   see the 2nd layout area click to enlarge the lin...   Aug 1 2009, 10:53 AM
SwaggLookinGood   okay and what about the headings, about me. who i...   Aug 2 2009, 06:57 AM
SwaggLookinGood   mike, i just went in IE. and the links are backwa...   Aug 2 2009, 07:12 AM
SwaggLookinGood   ok thank you. how can i transparent the scrollbar ...   Aug 2 2009, 07:20 AM
SwaggLookinGood   okay i have no more questions, if i do ill PM you ...   Aug 3 2009, 02:08 PM
Mike   A new topic would be best. Topic closed & move...   Aug 3 2009, 03:43 PM


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