|
-
Mar 30th, 2005, 11:18 AM
#1
Thread Starter
Addicted Member
style sheets
Hi,
I've got some questions about style sheets, but first of all, I want to apologise if it is the wrong category to post this thread, the reason I'm sending it here is because I use PHP,
then, here are the questions
- Are style sheets written in HTML,
- What are they used for,
- Do I have to import a sheet using JavaScript in PHP,
- How do they make the gradient-like background(e.g. in phpBB ),
- Can somebody explain one or some of those with examples and usage places?
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Mar 30th, 2005, 11:26 AM
#2
Re: style sheets
- Are style sheets written in HTML?
They are wiritten in CSS (Cascading Style Sheets). You can put it in style tags in HTML like:
HTML Code:
<style type="text/css">
body {
color: red;
}
Inside a style attribute:
HTML Code:
<a style="text-decoration: none" ..
Or in a separate file and import the using the <link> tag. - What are they used for?
They are used to describe the formatting and positioning of elements in a HTML page and allow you to keep the data, separate from the style definitions. - Do I have to import a sheet using JavaScript in PHP?
No
The other question I'm not sure about. I have moved this thread to the right forum, where you are likely to get a better response.
-
Mar 30th, 2005, 03:31 PM
#3
Thread Starter
Addicted Member
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Mar 31st, 2005, 12:55 AM
#4
-
Mar 31st, 2005, 10:28 AM
#5
Thread Starter
Addicted Member
Re: style sheets
thanks mendhak.w3schools is always useful( it still doesn't explain how to apply gradient to the tables though )
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Mar 31st, 2005, 02:47 PM
#6
Thread Starter
Addicted Member
Re: style sheets
uh and one last question; does anybody have an idea about how black buttons are done in this page
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Mar 31st, 2005, 11:49 PM
#7
Re: style sheets
In the CSS file:
Code:
input, textarea {
color: WHITE;
font-size: 10pt;
font-family: "Verdana";
font-weight: normal;
background-color: #000000;
border: #888888 1px solid;
-
Apr 1st, 2005, 09:39 AM
#8
Thread Starter
Addicted Member
Re: style sheets
hey thanks a lot again( really a lot) but that's the textareas, not the buttons. Are they done in the same way?
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Apr 1st, 2005, 03:42 PM
#9
Member
Re: style sheets
Yes, a button is an input.
-
Apr 3rd, 2005, 01:03 AM
#10
Re: style sheets
It says
input, textareas
there.
Which means that the style specifications there should apply to input tags (textbox, checkbox, buttons, etc) as well as textareas.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|