navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

css simple question- i think

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> css simple question- i think
Page: [1]
 
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

(in reply to pong)
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.

(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5470
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: css simple question- i think - 4/20/2004 15:54:04   
quote:

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

- I am pretty sure that will work. It is something that you should be able to try out and see within a few minutes. These small things you can even try before asking it in a forum.

Make a new link on that page just like the other links. I think that your problem is that you have visited all of the links, thus they appear what you have in the visited state. :)

I am almost certain this is what is happening.

This is the way I layout my CSS code. It is really easy for me to understand and picture in my mind what is happening:
A:link 
{ 
	color: #ACDAEE;
	background: transparent;
	text-decoration: underline
	 }
A:visited 
{ 
	color: #ACDAEE;
	background: transparent;
	text-decoration: underline
	}
A:active 
{ 
	color: #ACDAEE;
	background: transparent;
	text-decoration: underline
	 }	
	 		
A:hover 
{ 
	color: #F7C100;
	background: transparent;
	text-decoration: underline
	 }


< Message edited by BobbyDouglas -- 4/20/2004 15:57:14 >


_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to pong)
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

_____________________________


(in reply to BobbyDouglas)
ellipisces

 

Posts: 849
Joined: 12/14/2003
Status: offline

 
RE: css simple question- i think - 4/20/2004 15:59:36   
<td div class="footer">


I think your intent here would be something like this???

<div class="footer">
<td align=left>

more
more
more

</td>
</div>

consider the div to be a "container" for other HTML elements. note that in this example it is only going to style the row...:):):)

_____________________________


(in reply to pong)
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:13:13   
Link, Visited, Hover, Active.
always in that order:)

_____________________________

David Prescott
Gekko web design

(in reply to ellipisces)
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

(in reply to d a v e)
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

(in reply to BobbyDouglas)
ellipisces

 

Posts: 849
Joined: 12/14/2003
Status: offline

 
RE: css simple question- i think - 4/20/2004 16:36:07   
order definately matters!

_____________________________


(in reply to d a v e)
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

(in reply to ellipisces)
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

(in reply to ellipisces)
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

(in reply to d a v e)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: css simple question- i think - 4/20/2004 16:51:10   
Oooh yah - order is essential otherwise the cascade fails and not just for links either. Its why you have to be very careful with linked vs embedded vs inline.

_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to d a v e)
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?

(in reply to d a v e)
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

(in reply to pong)
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: css simple question- i think - 4/20/2004 18:08:28   
Instead of <td div class="footer"> try just <td class="footer"> and see if it gives you what you want...

Table cells will display block element styles just like a layer... in most cases.

I'm also gonna pop this thread over to the CSS forum.

:)

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to d a v e)
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

(in reply to bobby)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: css simple question- i think - 4/21/2004 12:44:46   
focus

_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to BobbyDouglas)
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

(in reply to gorilla)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: css simple question- i think - 4/22/2004 12:53:05   
http://www.frontpagewebmaster.com/m-190578/mpage-1/key-//tm.htm#190741

_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to d a v e)
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

(in reply to gorilla)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: css simple question- i think - 4/24/2004 5:38:20   
quote:

thanks for the link but i was just joking! (focus ;)


Even though you were joking Dave, this link does help others out. So thanks for joking around. :)

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to d a v e)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> css simple question- i think
Page: [1]
Jump to: 1





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