Css, lost already

0

03bigMark03

Guest
#1
Hi there, I'm redesigning http://www.potton-delph.co.uk , as you can see from the thread above.

I just learnt that I could use CSS and have read a tutorial and have a basic idea of how everything fit's together but i'm totally lost when it comes to practice. If you guys could provide a working example that would be great.

Cheers.

Mark.
 

SPeedY_B

I may actually be insane.
#2
If you just want an example here's a sheet I've just finished (along with XHTML 1.1 compliancy) for my webcam portal (link in sig)
Code:
body {
  font-family: Verdana, arial, sans-serif;
  color: #000000;
  font-size: 10px;
  background-color: #FFFFFF;
}
td {
  font-family: Verdana, arial, sans-serif;
  color: #000000;
  font-size: 10px;
  background-color: #FFFFFF;
}
a:link { 
  color: #000000; 
  background: transparent
}
a:visited { 
  color: #282828;
  background: transparent
}
a:active { 
  color: #FF0000;
  background: transparent
}
.titles {
  background-color: #000000;
  font-family: Verdana, arial, sans-serif;
  color: #FFFFFF;
  font-size: 10px;
  background: url("img/BG.png");
  background-repeat: repeat-x;
  border-bottom: 0px #000000 solid;
}
.btable {
  border: 1px #000000 solid;
  width: 140px;
}
.maintable {
  border: 1px #000000 solid;
  width: 400px;
}
.maindiv {
  text-align: center;
}
 

Kevin Ar18

OSNN Senior Addict
#3
And of course the following code (without the period at the beginning) would apply to the <body> tag that's part of regular HTML.
PHP:
body {
  font-family: Verdana, arial, sans-serif;
  color: #000000;
  font-size: 10px;
  background-color: #FFFFFF;
}
The ones with the period work differently. For exampe:
PHP:
.maindiv {
  text-align: center;
}
You could add that style to almost any tag there is. For example:
<div class="maindiv">div contents</div>
<p class="maindiv">test</p>
<span class="maindiv">test</span>
 
0

03bigMark03

Guest
#4
Thanks

Cheers for all the help.

SpeedY_b can I speak to you soon. Ill send an email hopefully.
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,970
Messages
673,297
Members
89,017
Latest member
Poseeut