|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 | |
| Junior Guru | If you have not read the HTML Tutorial or you are not familiar with HTML click here. Else, read on .CSS is one of the main styling agents on the web today. CSS (or cascading style sheets) can be very useful to a website designer who is ready to have cleaner, and nicer looking sites. There is a set back though. CSS can get confusing and has some tough problems to sort out. I'll go through the basics of CSS here, but remember, this is just scratching the surface. To Use Style Sheets you must implement one of two options of code into a HTML page's header. In the Header you would have something like the following: Code:
Code:
Global Styles are styles that are applied to the whole page. Here is a list, by me, that shows some global styles in action. Background Color, and Font Properties Code:
Link Color, Style (a is a link, a:visited is a visited link, a:hover is a link onMouseover, and a:active is a clicked link) Code:
Non-Global Styles, or styles that are only used when called upon. Divs Code:
Code:
Classes Code:
Code:
This was just a scratch on the surface of CSS. To learn more go to one of these links. If you know a good link, please post it, I will consider. All work is by me on this post! Links: W3 Schools 7 Reasons to Use CSS and a quote from rohan2kool: Quote:
HTMLGuy
__________________ Thumpr ~ Xcolored | |
| |
|
| |||||||
| | #2 |
| Newcomer Join Date: Feb 2006 Location: Canada
Posts: 7
![]() | I think someone just learning does not want to do this: Code:
That implies that more than one element may have the ID "mydiv". If you are following standards and best practices then every id should be unique to a single element and div#mydiv is redundant and misleading. All that should be required is #mydiv. Being new on this site maybe that will be considered out of line, but I just don't want to see folks who are just learning CSS starting out on the road to bloated stylesheets. The w3schools link i sa good starting point. This is also a good one: http://www.wpdfd.com/editorial/basics/index.html and once someone gets the basics it is a good idea to get familar with the standards (not just for CSS but for HTML as well) at http://www.w3c.org who are the guardians of web standards. If someone gets stuck and can't find what they need, or need specialized help, they can find me several other CSS oriented developers at http://www.expertsrt.com
__________________ Cd& Home: http://www.expertsrt.com Drop by anytime you need tech support that you can't get here |
| |
| | #3 |
| Junior Guru | You aren't familiar with IE7 are you ? The Microsoft Developers encourage that so the css engine doesn't get confused, I'm teaching the newest stuff, not the basics. I want people to learn css in an enviroment on which it will work on all platforms. Thanks for the comments though.HTMLGuy
__________________ Thumpr ~ Xcolored |
| |
| | #4 |
| Newcomer Join Date: Feb 2006 Location: Canada
Posts: 7
![]() | IE7 is beta and still full of bugs. I have not seen any documentation from Microsoft or anyone else that such a non-standard and non-intuitive approach was necessary. As for my fammilar I am with M$ I have sold and supported it since 1983, and I have have developed for evey browser they ever produce. That does not mitigate thefact that their current browers since IE5 is bloated crude. You support it by doing the code correctly to standards and adjust to to get acceptable behaviour from IE without degrading the rendering quality for compliant browsers. If there is some question about my qualifications you can check me out here: http://www.experts-exchange.com/Web/Web_Languages/CSS/ Where I started the CSS forum in 2000 and edited it until I left that site in August... Or any of a dozen other sites where post. Sorry if I got in the way of your tutorial, but recommending that format is bad advice. I understand you may not like someone new on the site criticizing; I been there myself, but I am not known for keeping quiet about mistakes the use web standards.
__________________ Cd& Home: http://www.expertsrt.com Drop by anytime you need tech support that you can't get here |
| |
| | #5 |
| Junior Guru | Your point is made, very good job at correcting me. I am still messing with this code, and I see where you are coming from, but as you know, IE has bugs, yet most people use it who are non-developers / designers / coders, which creates the target market / programming area IE, so we might as well put IE first. I called this a CSS tutorial, not a CSS Beginner Tutorial, this is just to help cover some questions so that this area doesn't get as congested with mundane problems which I have discussed in my tutorial. But, as I said, I respect your opinion as an iWEBTOOL member, and I listen to what you say, and as always I am experimenting with new code to help designers...not hurt them. My intention is to help their site building process, and you have helped me acheive that goal, by correcting a seemed mistake. Thank you for your reply! Oh, and I am pleased you got in the way of my tutorial, I love being proved wrong so I can teach people better, and you are certainly not in the way, as you suggest. HTMLGuy
__________________ Thumpr ~ Xcolored |
| |
| | #6 | |
| Newcomer Join Date: Feb 2006 Location: Canada
Posts: 7
![]() | Quote:
We are on the same page. I post on a lot forums and helps site, as well as moderating operating them. I also was trying to help. It is what I do, and have been doing a long time. Writing tutorials, and support members on a site like this is a difficult, and deserving of respect. If I came across a little harsh; I appologize. It was not my intent. I have perhaps gotten a little to used to the more aggressive approach to finding solutions that is the common style on some forums where post as an advocate for standards compliance and open source. Perhaps I am out of bounds with those debates, but developers and site operators really need to look at standards compliance from the point of view of lower cost and faster easier maintenance. Initially it takes little longer to do things to standards but in the long run the difference in the cost of both maintenance ond new development put you way ahead of the game. On my own site the time it takes to modify a page from the forum where I am using old off the shelf software it three times as long as it takes for changes on the pages that are to, or close to standards. I just try to let guide others away from high cost mistakes. :cool:
__________________ Cd& Home: http://www.expertsrt.com Drop by anytime you need tech support that you can't get here | |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Tutorial | fire_lady | Web Development | 6 | 02-09-2007 01:34 AM |
| create buttons tutorial | lite_ws | Web Development | 2 | 01-26-2007 01:32 PM |
| HTMLGuy's HTML Tutorial | Zack | HTML | 8 | 10-22-2006 04:11 PM |
| Tutorial Template | Zack | Websites for Sale | 0 | 02-20-2006 03:06 PM |