Home

Profile Editor

Layouts

Contact Tables

Generators

Tutorials
Log inUsernamePassword
Log me on automatically each visit    
Search
Search
Register
Register
Log in to check your private messages
Log in to check your private messages
MyGen.co.uk Forum Index » Tutorials

Post new topic   Reply to topic
CSS for Beginners Goto page 1, 2, 3  Next
View previous topic :: View next topic  
Author Message
adatti
MyGen Mod


Posts: 1120
Location: West Palm Beach,FL

PostPosted: Saturday 25th March 4:05pm    Post subject: CSS for Beginners Reply with quote

These are some basic codes for a CSS beginner.

Set a Background Color:
Code:
<style type="text/css">
body { background-color: input color name; }
</style>

Set image as a background:
Code:
<style type="text/css">
body
{
background-image: url('input image url');
}
</style>

Repeat Background Image Vertically:
Code:
<style type="text/css">
body
{
background-image: url('input image url');
background-repeat: repeat-y;
}
</style>

Place a background image:
Code:
<style type="text/css">
body
{
background-image: url('image url');
background-repeat: no-repeat;
background-position: the position u want;
}
</style>

Change Font Type:
Code:
<style type="text/css">
p { font-family: the font name; }
</style>

_________________


Last edited by adatti on Sunday 26th March 2:39pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Triple



Posts: 38
Location: Illinois

PostPosted: Saturday 25th March 7:55pm    Post subject: Reply with quote

Just a little note to you beginners, do not use
Code:
<style>
code here
</style>


For every little thing. You can put everything between one set of style codes...if that made sence....

I jsut see people with a million little <style></style> things Razz.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
diamondandy
MyGen Mod Post Whore


Posts: 3787
Location: Liverpool, England

PostPosted: Saturday 25th March 8:18pm    Post subject: Reply with quote

what triple is saying is... instead of having..

Code:
<style type="text/css">
p {font-family: the font name}
</style>

<style type="text/css">
body {background-color: input color name}
</style>


u can combine them so it looks like..

Code:
<style type="text/css">
body {background-color: input color name}

p {font-family: the font name}
</style>


and it will have the same effect Wink
_________________

Kyle m wrote:
diamondandy. LITERALLY in a class of his own now!

Div Part 1 Vid In Tutorial Section
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
adatti
MyGen Mod


Posts: 1120
Location: West Palm Beach,FL

PostPosted: Sunday 26th March 12:57pm    Post subject: Reply with quote

yea wht andy and triple said.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Triple



Posts: 38
Location: Illinois

PostPosted: Friday 31st March 5:55pm    Post subject: Reply with quote

ROFL

Thanks for that one Andy...lil bit lazy Embarassed
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
luv2dostuf



Posts: 1087
Location: Utah

PostPosted: Friday 31st March 8:10pm    Post subject: Reply with quote

Also, for people who are reading the page source to help people find out problems and mistakes with their code, its a hell of a lot easier to read this:

Code:
<style>
table, tr, td, li, p, div {  color:FFFFFF; font-size:12px;     }
.btext {  color:FFFFFF; font-size:12px;     }
.blacktext10 {  color:FFFFFF; font-size:12px;     }
.blacktext12 {  color:FFFFFF; font-size:12px;     }
.lightbluetext8 {  color:FFFFFF; font-size:12px;     }
.orangetext15 {  color:FFFFFF; font-size:12px;     }
.redtext {  color:FFFFFF; font-size:12px;     }
.redbtext {  color:FFFFFF; font-size:12px;     }
.text {  color:FFFFFF; font-size:12px;     }
.whitetext12 {  color:FFFFFF; font-size:12px;     }
a:active, a:visited, a:link {  color:FFFFFF; font-size:12px;     }
a:hover {  color:FFFFFF; font-size:12px;     }
a.navbar:active, a.navbar:visited, a.navbar:link {  color:FFFFFF; font-size:12px;     }
a.navbar:hover {  color:FFFFFF; font-size:12px;     }
a.redlink:active, a.redlink:visited, a.redlink:link {  color:FFFFFF; font-size:12px;     }
a.redlink:hover {  color:FFFFFF; font-size:12px;     }
.nametext {  color:FFFFFF; font-size:12px;     }
</style>



Then this:

Code:
<style> table, tr, td, li, p, div {color:FFFFFF; font-size:12px;} .btext {color:FFFFFF; font-size:12px;} .blacktext10 {color:FFFFFF; font-size:12px;} .blacktext12 {color:FFFFFF; font-size:12px;} .lightbluetext8 {color:FFFFFF; font-size:12px;} .orangetext15 {color:FFFFFF; font-size:12px;} .redtext {color:FFFFFF; font-size:12px;} .redbtext {color:FFFFFF; font-size:12px;} .text {color:FFFFFF; font-size:12px;} .whitetext12 {color:FFFFFF; font-size:12px;} a:active, a:visited, a:link {color:FFFFFF; font-size:12px;} a:hover {color:FFFFFF; font-size:12px;} a.navbar:active, a.navbar:visited, a.navbar:link {color:FFFFFF; font-size:12px;} a.navbar:hover {color:FFFFFF; font-size:12px;} a.redlink:active, a.redlink:visited, a.redlink:link {color:FFFFFF; font-size:12px;} a.redlink:hover {color:FFFFFF; font-size:12px;} .nametext {color:FFFFFF; font-size:12px;}</style>
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
diamondandy
MyGen Mod Post Whore


Posts: 3787
Location: Liverpool, England

PostPosted: Saturday 01st April 3:23pm    Post subject: Reply with quote

i also find that if u want to find the source on someone's page, you should click on View > Find (i think it's view anyways) and type in

.blacktext

or something similar and it will take u too the profile's CSS style so u can copy wot u need Wink
_________________

Kyle m wrote:
diamondandy. LITERALLY in a class of his own now!

Div Part 1 Vid In Tutorial Section
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
luv2dostuf



Posts: 1087
Location: Utah

PostPosted: Saturday 01st April 10:15pm    Post subject: Reply with quote

cool beans... never thought of that Big Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
M!$$_N3W_B3AUTY!



Posts: 5
Location: BAKERSFIELD

PostPosted: Sunday 02nd April 2:23am    Post subject: Reply with quote

i dont get wat diamond watever said.
Back to top
View user's profile Send private message Visit poster's website
diamondandy
MyGen Mod Post Whore


Posts: 3787
Location: Liverpool, England

PostPosted: Sunday 02nd April 10:55am    Post subject: Reply with quote



on the pic click on view source...



as i can see the mygen logo in the corner i just typed in to find .mygen and it found the CSS part for me to copy wot i want =)
_________________

Kyle m wrote:
diamondandy. LITERALLY in a class of his own now!

Div Part 1 Vid In Tutorial Section
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
blood_secrets



Posts: 557

PostPosted: Thursday 11th May 2:28pm    Post subject: hehe Reply with quote

or you could just right click and click view source : )

i do that normally, but i dind't know note pad had that neat trick to find certain words, that helps : )


thankies

x
_________________
user posted image
Back to top
View user's profile Send private message
Kyle m



Posts: 2514

PostPosted: Thursday 11th May 2:46pm    Post subject: Re: hehe Reply with quote

blood_secrets wrote:
or you could just right click and click view source : )


that is what andy said to do.
_________________

I AM NOT A MOD
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
scooton



Posts: 1590

PostPosted: Sunday 25th June 5:52pm    Post subject: Re: hehe Reply with quote

blood_secrets wrote:
or you could just right click and click view source : )

i do that normally, but i dind't know note pad had that neat trick to find certain words, that helps : )


thankies

x


in firefox you can just use ctrl+f when using view source
Back to top
View user's profile Send private message
Temari15



Posts: 1

PostPosted: Friday 30th June 8:07am    Post subject: Reply with quote

diamondandy wrote:


on the pic click on view source...



as i can see the mygen logo in the corner i just typed in to find .mygen and it found the CSS part for me to copy wot i want =)


what program did you use ?
Back to top
View user's profile Send private message Send e-mail
adatti
MyGen Mod


Posts: 1120
Location: West Palm Beach,FL

PostPosted: Friday 30th June 11:06am    Post subject: Reply with quote

there is no program. jst presst ctrl + u on ur browser.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    MyGen.co.uk Forum Index » Tutorials All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
This page was created in 0.056 seconds

Powered by phpBB 2.0.11 © 2001, 2002 phpBB Group
© 2004-2006 Rob Hall and Rocky Wilkins. All rights reserved.