CSS for Beginners

These are some basic codes for a CSS beginner.

[b:22701aea2a]Set a Background Color:[/b:22701aea2a]
[code:1:22701aea2a]<style type="text/css">
body { background-color: input color name; }
</style>[/code:1:22701aea2a]
[b:22701aea2a]Set image as a background:[/b:22701aea2a]
[code:1:22701aea2a]<style type="text/css">
body
{
background-image: url('input image url');
}
</style>[/code:1:22701aea2a]
[b:22701aea2a]Repeat Background Image Vertically:[/b:22701aea2a]
[code:1:22701aea2a]<style type="text/css">
body
{
background-image: url('input image url');
background-repeat: repeat-y;
}
</style>[/code:1:22701aea2a]
[b:22701aea2a]Place a background image:[/b:22701aea2a]
[code:1:22701aea2a]<style type="text/css">
body
{
background-image: url('image url');
background-repeat: no-repeat;
background-position: the position u want;
}
</style>[/code:1:22701aea2a]
[b:22701aea2a]Change Font Type:[/b:22701aea2a]
[code:1:22701aea2a]<style type="text/css">
p { font-family: the font name; }
</style>[/code:1:22701aea2a]

© 2004-2017 MyGen.co.uk. All rights reserved.
MyGen v2.6 - 138925807 Unique Visitors
This page was created in 1.034 seconds
Privacy Policy

eXTReMe Tracker