ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Mandrake Redhat Debian Usually the last versions
Posts: 45
Rep:
Html Coding With Classes???
Ok, I notice that there are alot of difference from IIS to Apache... Hell I am really starting to like IIS more and more.... Some complaints... Embedding... Requires certain file extentions hhhmmmhhh!! I don't like it at all!!! Can't we all be friends??? Anyhow this complaint lastly is difference with CSS (Cascading Style Sheet) With IIS I could type my sheet as dog { background-color: #FFFFFF } and then type in the html code <td CLASS="dog"> and then the background color would be white... Well, hhmm not with Apache so far.... Can anyone tell me why this doesn't work, or of a fix for this????
Why would your HTTP server effect your CSS? The CSS is used by the browser, just server by Apache or IIS, sounds like you've changed browers - or have I missed something fundamental??
As a pro web designer, yes I can vouch for jharris. CSS is all client side and not server side. The server's job is to fling those files over to the web browser, and with something like CSS it's up to the browser to interpret them. Internet Explorer 5 and up has excellent support. Opera is good too. Netscape generation 4, on the other hand, is the most dated piece of crap out there, yet much to the annoyance of designers, is still somewhat popular. Also, Windoze browsers have the best CSS support right now, so don't be surprised if your CSS works on a Windoze box running IE5.5 and not on you Linux or Mac running Netscape or even Opera in some circumstances. To further complicate matters, different browsers support different attributes of CSS - there's no such thing as a 100% CSS compliant browser yet.
Distribution: Mandrake Redhat Debian Usually the last versions
Posts: 45
Original Poster
Rep:
Does it work???
Okay then does it work for you then?????? In your class type in xT { background-color:#00FF00 } and then in code html code make a table then with <td class="xT">... The end result should be a Mageneta background.... It don't work!!!
Can't help you much unless you tell me what browser and platform you are using. Don't forget to put a ; on the end of each statement, and a period before your classes, like this:
<head>
<style type = "text/css">
.xt {
background: pink;
}
</style>
</head>
There shouldn't be a need for "-color"
Then refer to this as:
<td class="xt">Stuff goes here.</td>
If you'd really like to see if your CSS is valid, go here:
Distribution: Mandrake Redhat Debian Usually the last versions
Posts: 45
Original Poster
Rep:
Sorry to say
That method doesn't work no more... I am not sure why I used many different fashions and no hope except what I used above style....
{ Table.ax (color=#fffffff }
.....style
then <table class="ax" .....>
okay... like I said I got tons oh problems.... especially with header and PHP... THe demos i seen don't even work.. silly!!!!
Try other attributes too. The easiest way to learn is to go to someone else's site and select View Source from the View menu in your browser, and check out how they're doing it.
You do not have to declare "td.ax" in your style sheet - this won't work at all. You declare the ".ax" style, so you can use it anywhere in your BODY, like: <td class=ax> or <p class=ax> or <table class=ax> - they'll all have a color of white in your example.
And IN YOUR STYLE SHEET you don't use "=" to assign an attribute, as my previous exampleS show. Rather, you use ":"
This example works (I tested it!), and turns the background color of the table cell grey:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.