|
| |
|
|
pong
Posts: 44 Joined: 3/24/2004 Status: offline
|
css simple question- i think - 4/20/2004 13:48:37
First time using CSS for formating (not for layout, still using tables). I'm using an external CSS style sheets and i'm not sure if i'm putting the code in the right place in the HTML page. Here's a link. (only the index page works) http://home.earthlink.net/~pongping/aes/index.htm Here's what my style sheet looks like: /* COMMENT */ /* file name aes_style.css */ a:link { color: #999999; text-decoration: none} a:hover { color: #ffffff; text-decoration: underline} a:visited { color: #999999; text-decoration: none} a:active { color: #999999; text-decoration: none} .text { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #999999; } .footer{ font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #999999; } Can someone look at the code? specifically down at the footer comment. I placed div classes called "footer" which is calling for the stylesheet stuff. Question 1. How come the hover command is not working (I did this by hand not using FP, so i thought it would work) 2. Do i need to put the div code in each cell as i did? or is there a more efficient way of coding it for example put the div class="footer" somewhere only once and it will afffect all the text between the starting div and the end tag </div>? Thanks!
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: css simple question- i think - 4/20/2004 15:15:04
quote:
1. How come the hover command is not working (I did this by hand not using FP, so i thought it would work) - It works for me. quote:
Do i need to put the div code in each cell as i did? or is there a more efficient way of coding it for example put the div class="footer" somewhere only once and it will afffect all the text between the starting div and the end tag </div>? - If you put the class = footer it will make the default code inside of the div use the footer class unless otherwise specified.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
pong
Posts: 44 Joined: 3/24/2004 Status: offline
|
RE: css simple question- i think - 4/20/2004 15:35:35
I'm looking at in IE adn netscape and the hover isn't working on the bottom links, they just stay grey (they should be going to white). What are you using? quote:
If you put the class = footer it will make the default code inside of the div use the footer class unless otherwise specified. I think i know what you're saying.. I'm barely understanding the css as is and have never used div's before so bare with me :-). But can I put the div class ="footer" in the first cell in the table and then end it at the last cell and everything inbetween will be affected? or do i need to put it in each cell with text and do i need to close the div's, they seem work even when i don't but wasn't sure if i could run into trouble. Thanks for helping me out.
|
|
|
|
JointComms
Posts: 200 Joined: 10/6/2002 From: Windsor, CANADA Status: offline
|
RE: css simple question- i think - 4/20/2004 15:58:17
They're working fine for me in IE6. Nice work by the way
_____________________________
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: css simple question- i think - 4/20/2004 16:17:56
Order doesn't matter though, correct?
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: css simple question- i think - 4/20/2004 16:22:30
yes it does matter - last in the sheet is more important due to the cascade (for rules of potentially equal importance) otherwise you end up with hover effects not working on visited links and all sorts of nasty things!
_____________________________
David Prescott Gekko web design
|
|
|
|
ellipisces
Posts: 849 Joined: 12/14/2003 Status: offline
|
RE: css simple question- i think - 4/20/2004 16:36:07
order definately matters!
_____________________________
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: css simple question- i think - 4/20/2004 16:39:33
That's weird, I never thought that the order of the display matters at all. I haven't noticed a difference on my page... Maybe I am missing something here.
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: css simple question- i think - 4/20/2004 16:42:29
you main menu (currently images) would be so easy to do in css, be quicker, accessible and renmove the need for the duplicate links at the bottom. something to bear in mind if you want to look into it before going too much futher e.g. start with something like http://css.maxdesign.com.au/listamatic/horizontal03.htm and tweak it with your colours and exact layout
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: css simple question- i think - 4/20/2004 16:44:17
bobby if you go to the url in the original page and follow a link then go back and hover over the now visited link it doesn't hover the same as the others, at least not in opera
_____________________________
David Prescott Gekko web design
|
|
|
|
pong
Posts: 44 Joined: 3/24/2004 Status: offline
|
RE: css simple question- i think - 4/20/2004 17:00:01
dave: i changed the order and it worked - thanks I looked into making teh main nav bar as css but I didn't like the way the text looked so much like HTML, they were'nt as smooth as they are when done as an image. The CSS looked good when it was at a larger font size but i was limited to this size. I'm still torn and still might make it CSS (great link thankyou!)...Is there a way to make it less pixelated looking when using CSS? ellipsces: when i put the div class = "footer" before my td tags, fp keeps adding another row in and changing the layout. It seems to work only when i put them right into each TD cell. should i be putting them somewhere else?
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: css simple question- i think - 4/20/2004 17:12:39
text will look as smoth as the font smoothing technique of your operating system so windows it's in the control panel and display properties (somewhere "turn font smoothing") mind that's on win 98, it could be anywhere now. it should be as smooth (anitaliased) as all the other 'real' text when you view it.
_____________________________
David Prescott Gekko web design
|
|
|
|
BobbyDouglas
Posts: 5470 Joined: 5/15/2003 From: Arizona Status: offline
|
RE: css simple question- i think - 4/20/2004 23:09:59
What is the other attribute that was missing above. I thought there was another gorila pointed out on here awhile back that everyone was new to- at least some of us were. I don't quite remember it...
_____________________________
Arizona Web Design - Mr Bobs Web Design in Arizona The Arizona Web Hosting Challenge
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: css simple question- i think - 4/22/2004 2:41:16
i am. i'm focusing but i still can't remember ;)
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: css simple question- i think - 4/23/2004 3:37:50
thanks for the link but i was just joking! (focus ;)
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|