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
 
3 Pages V   1 2 3 >  
Start new topic
Replies (1 - 24)
Mickey
post Jul 24 2009, 08:43 AM
Post #2


Treasure Pleasure
********

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



You need to separate the HTML and CSS codes. I suggest placing HTML codes in your About Me and CSS codes in your Who I'd Like To Meet. Therefore, your About Me should look like this:

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

Your Who I'd Like To Meet should look like this:

CODE
<style>

{hide all of myspace} .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;}


BODY {scrollbar-3dlight-color:;
scrollbar-shadow-color:;
scrollbar-face-color:;
scrollbar-darkshadow-color:;
scrollbar-track-color:;
scrollbar-arrow-color: babyblue;
scrollbar-highlight-color:;}
body { background-color: white;
{background-image:url("");
background-attachment: fixed;
background-position: bottom left;
background-repeat:repeat;}

table table table {border: 1px solid; border-color: 000000; padding:0; background-color:; background-image: url("")}

table tbody td table tbody tr td.text table{background-color: ffffff; background-image: url("")}table table{border:0px;}

table table table table{border:0px;}

table, tr, td {background-color:transparent; border:none; border-width:0;}

font, a, body, table, body, td, li, p, textarea, li, h1, h2, p, br {font-family:Georgia; font-size: 11px; color: 000000; font-weight: normal; text-decoration: none; letter-spacing: 0px; text-transform: none; padding: 0px; line-height: 10px; background-color:transparent;}

.text {font-family:Georgia; font-size: 11px; color: 000000; font-weight: normal; text-decoration: none; letter-spacing: 0px; text-transform: none; padding: 0px; line-height: 10px;}

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

</style>

That should make your DIVs appear.
 
MoneyIsDaMotive
post Jul 24 2009, 11:54 AM
Post #3


Blazed
****

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



wait wasnt it css on top
and html on bottem before???

 
MoneyIsDaMotive
post Jul 24 2009, 12:47 PM
Post #4


Blazed
****

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



no, well wait. i fixed the style sheet && redid it and post it and replaced the other one.like the one in the Tut.
but before i start using it, i remember that i had alot of problems the first time i coded divs. like browser and resolution.
can you make sure code won't have the same problems so i don't have to ask whats wrong later?
and please check my code to see if its all good . _unsure.gif
 
Mickey
post Jul 24 2009, 12:49 PM
Post #5


Treasure Pleasure
********

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



On here:

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

Replace the positioning attributes with this:

CODE
<div class="bg" style="position: absolute; left:50%; margin-left:#px; top:#px; width:640px; height:480px; overflow: hidden;">
<img src="http://i25.tinypic.com/33vkc5c.jpg" />
</div>

Then replace the pound symbols with appropriate values until it's where you want it.
 
MoneyIsDaMotive
post Jul 24 2009, 12:53 PM
Post #6


Blazed
****

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





okay so what does that fix?and i know i havent got to edit it yet,
but wasnt there a "_" somewhere for browsers????(underscore) blink.gif
 
MoneyIsDaMotive
post Jul 24 2009, 01:03 PM
Post #7


Blazed
****

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



okay, keep this open till i figure this out which probly won't take
long if i need help, ill ask on this post or if im done ill say please close


also 1 random question to get it out the way,
if i do try to make a layout for create-blog
don't the rules say copyright can't be on the div??
you can only use links(text)????
i thought i seen that as a new rule a year ago?
mellow.gif

 
Mikeplyts
post Jul 24 2009, 01:05 PM
Post #8


Mel Blanc was allergic to carrots.
*******

Group: Official Designer
Posts: 6,371
Joined: Aug 2008
Member No: 676,291



Yeah, it doesn't matter. You just have to at least have some form of copyright on there, imo.
 
MoneyIsDaMotive
post Jul 24 2009, 01:07 PM
Post #9


Blazed
****

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



QUOTE(Mikeplyts @ Jul 24 2009, 01:05 PM) *
Yeah, it doesn't matter. You just have to at least have some form of copyright on there, imo.



okay so i can put the copyright on the image right????
 
Mikeplyts
post Jul 24 2009, 01:07 PM
Post #10


Mel Blanc was allergic to carrots.
*******

Group: Official Designer
Posts: 6,371
Joined: Aug 2008
Member No: 676,291



sure, why not. :) I prefer to make it a DIV class though so that way the user could change it if their using it for the next year. :p
 
MoneyIsDaMotive
post Jul 24 2009, 01:11 PM
Post #11


Blazed
****

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



QUOTE(Mikeplyts @ Jul 24 2009, 01:07 PM) *
sure, why not. :) I prefer to make it a DIV class though so that way the user could change it if their using it for the next year. :p



what you mean by div class?
 
MoneyIsDaMotive
post Jul 24 2009, 01:52 PM
Post #12


Blazed
****

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



ohhhh yeah i see.
i probly won't do that.
why would you do that anyways when
any one can steal your layout??
 
MoneyIsDaMotive
post Jul 24 2009, 02:29 PM
Post #13


Blazed
****

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



QUOTE(A1Bassline @ Jul 24 2009, 01:54 PM) *
^ Anyone can edit the copyright out of the image, too. shrug.gif


yeah your right.
onless you make it blend in the image......

 
MoneyIsDaMotive
post Jul 24 2009, 03:21 PM
Post #14


Blazed
****

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



yeahh ill tell you 2night


wasnt their a code for the bottem links to go down the page???

-edit. oops i didn't mean to double post.mybad
Reason for edit: Please use the Edit button instead of double-posting. - Mike
 
Mickey
post Jul 25 2009, 05:13 AM
Post #15


Treasure Pleasure
********

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



Posts merged.
 
MoneyIsDaMotive
post Jul 25 2009, 07:24 AM
Post #16


Blazed
****

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



nope im good,
i got the image on, well positioned in the center
(i think)
now what i need to do is get the two tables in the right
place and
wait.
i remember how i use to make the links, i just don't
remember the code.
on photoshop, the image info. theres a X and Y,
then you copy (i think)the numbers on the corners of like "message add comment"
i forgot the code tho _unsure.gif
help me out




also.
this is kinda hard to do sence theres no boarder

here.

how can i puta boarder around it?
the box is on the top left corner
 
MoneyIsDaMotive
post Jul 25 2009, 09:48 AM
Post #17


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
 
MoneyIsDaMotive
post Jul 25 2009, 09:52 AM
Post #18


Blazed
****

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



no i don't think it had pound symbols in it,
and image mapping?wait i think it was that????
rawr
okay well if IT is image mapping(i think if was too stubborn.gif )

can you explane your code a lil bit more
 
Mickey
post Jul 25 2009, 09:58 AM
Post #19


Treasure Pleasure
********

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



An image map code looks something like this:

CODE
<map name="business">
<area shape="rect" coords="#, #, #, #" href="URL">
<area shape="rect" coords="#, #, #, #" href="URL">
<area shape="rect" coords="#, #, #, #" href="URL">
<area shape="rect" coords="#, #, #, #" href="URL">
<area shape="rect" coords="#, #, #, #" href="URL">
<area shape="rect" coords="#, #, #, #" href="URL">
</map>

<img src="URL" usemap="#business" alt="" />

On the underlined bit, the usemap property uses a pound symbol to call on the map code above it. That's why it won't function right.
 
MoneyIsDaMotive
post Jul 25 2009, 10:01 AM
Post #20


Blazed
****

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



ohhh see i thought you mean something like this

http://www.createblog.com/photoshop-tutori...hop-image-maps/

and yeahh i think thats what it was.

ANYTHING to replace that????
 
MoneyIsDaMotive
post Jul 25 2009, 10:05 AM
Post #21


Blazed
****

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



okay, you said getting use to the method.what method?
 
MoneyIsDaMotive
post Jul 25 2009, 10:13 AM
Post #22


Blazed
****

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



ok well im gonna switch the divs, the 1 you gave me and fix it,
then im gonna do the links
and after that, i wanna do rollovers.

so can you explane that? whistling.gif
 
MoneyIsDaMotive
post Jul 25 2009, 10:43 AM
Post #23


Blazed
****

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



okay on that. post #9.

can you explane how to do that??????

 
MoneyIsDaMotive
post Jul 25 2009, 11:02 AM
Post #24


Blazed
****

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



nvm let me try and do it first, thenn if i need help ill ask
 
MoneyIsDaMotive
post Jul 26 2009, 12:18 AM
Post #25


Blazed
****

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



not yet. i had about a hour on it, i got the first table on.
take a look.
and

i had the image higher "like it is now"
before i logged off, but when i logged back in.
the image went down,
and this is the 2nd time
i fixed it tho its higher
but why did it do that?
any ideas?
 

3 Pages V   1 2 3 >
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: