Keeping the style type on a single line?
4 posters
Page 1 of 1
Keeping the style type on a single line?
So guys,
Instead of this:
1. h2{ color: #dfdfdf;
2. font-size: 80%;
3. margin: 5px;
4. padding: 10px;
5. }
How can I make it a single line? Would this be right:
h5{color: #dfdfdf; fo nt-size: 80%: margin: 5px; padding: 10px;}
?
Instead of this:
1. h2{ color: #dfdfdf;
2. font-size: 80%;
3. margin: 5px;
4. padding: 10px;
5. }
How can I make it a single line? Would this be right:
h5{color: #dfdfdf; fo nt-size: 80%: margin: 5px; padding: 10px;}
?
erione- Global Moderator
- Number of posts : 1285
Flow Points : 2110
Reputation : 21
Warnings :
Mood :
Re: Keeping the style type on a single line?
hmmm. that looks just about right but you put a space in between the fo and the nt in "font"
you could check at www.w3schools.com that would help thats hat I do because i usually forget some CSS codes...
you could check at www.w3schools.com that would help thats hat I do because i usually forget some CSS codes...
Re: Keeping the style type on a single line?
I've done that but it still doesn't work. I'm confused whether I should use ";" or ":"
Thanks for the link.
Thanks for the link.
erione- Global Moderator
- Number of posts : 1285
Flow Points : 2110
Reputation : 21
Warnings :
Mood :
Re: Keeping the style type on a single line?
It is right but there is no space in fo nt. The rest of it is ok.
Bekki- Gold Member
- Number of posts : 124
Flow Points : 240
Reputation : 4
Warnings :
Mood :
Re: Keeping the style type on a single line?
I think it is this....
h5{color: #dfdfdf; font-size: 80%; margin: 5px; padding: 10px;}
this is what you did ...
h5{color: #dfdfdf; fo nt-size: 80%: margin: 5px; padding: 10px;}
The difference is that you didint put ; after the 80% for the font size...
Please +Rep????
h5{color: #dfdfdf; font-size: 80%; margin: 5px; padding: 10px;}
this is what you did ...
h5{color: #dfdfdf; fo nt-size: 80%: margin: 5px; padding: 10px;}
The difference is that you didint put ; after the 80% for the font size...
Please +Rep????
Re: Keeping the style type on a single line?
Thanks to everyone who replied especially Keitho.
Locked
Locked
erione- Global Moderator
- Number of posts : 1285
Flow Points : 2110
Reputation : 21
Warnings :
Mood :
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|