-
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?
-
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. ;)
-
Re: style sheets
-
Re: style sheets
-
Re: style sheets
thanks mendhak.w3schools is always useful( it still doesn't explain how to apply gradient to the tables though :( )
-
Re: style sheets
uh and one last question; does anybody have an idea about how black buttons are done in this page
-
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;
-
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?
-
Re: style sheets
Yes, a button is an input.
-
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.