Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Coding Problems that Newbie Can't Figure Out
Old 11-16-2008, 06:42 PM Coding Problems that Newbie Can't Figure Out
Skilled Talker

Posts: 66
Trades: 0
I am trying to put a page together that is a bit more complicated than the basic pages I have been experimenting with lately (I am a newbie trying to learn as I go) and I've hit a couple of snags that I just can't figure out.

The live page is HERE.

The first problem is that there is a gap above my "footer". It has to be something with my <div>'s but I just can't find it or figure out what is causing the gap.

The second problem is I am trying to incorporate a simple horizontal menu that only has four items (so far )

If you look hard at the bar below the company name and the image to the right of the name, you will see that I kinda sorta got the menu laid out, but I need to do something about the spacing between the links so they fit the small images in the bar. Also, for some reason the color I have specified is not working. Finally, I would like to have the text change color as a rollover if it isn't to complicated to code.

I would really appreciate it if one of the experts would take a look at this and tell me what I did wrong and direct me to where I can learn how to fix it.

Thanks
JustAGuy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-16-2008, 07:01 PM Re: Coding Problems that Newbie Can't Figure Out
Defies a Status

Posts: 1,606
Trades: 0
I can't spot the break. Lady or Chris will will catch up with you on that.

To set a hover color use this syntax:

A.nav-link:hover {
color:#FF0000;
}

And then define the link. In this example a nav link.

EDit: if you only want a single class of links it would just be:

A.link:hover {
color:#FF0000;
}
__________________
Colbyt

Please login or register to view this content. Registration is FREE

Last edited by colbyt; 11-16-2008 at 07:03 PM..
colbyt is offline
Reply With Quote
View Public Profile
 
Old 11-16-2008, 09:33 PM Re: Coding Problems that Newbie Can't Figure Out
JohnDiamond's Avatar
Extreme Talker

Posts: 171
Name: John Diamond
Trades: 0
The spacing problem is most likely in the definition of your left id. try to either reduce height:539px; or modify left.jpg. I think that should fix it. let me know if it worked.
__________________
John

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
JohnDiamond is offline
Reply With Quote
View Public Profile
 
Old 11-16-2008, 10:40 PM Re: Coding Problems that Newbie Can't Figure Out
Skilled Talker

Posts: 66
Trades: 0
JohnDiamond, you were right on the money about the definition. After adjusting the height of "left" and "Mid" <div>'s, it all lined up perfectly.

What I don't understand and can't seem to get thru my thick head is why I end up with different heights for my <div>'s. It seems to me that if they are all set for say 500px, why they don't line up as I would expect them to. This is driving me nuts.

Colbyt your suggestion worked. Now all I need to figure out is the spacing between links so I can move them to work with the images.

Thanks again
JustAGuy is offline
Reply With Quote
View Public Profile
 
Old 11-17-2008, 06:42 AM Re: Coding Problems that Newbie Can't Figure Out
JohnDiamond's Avatar
Extreme Talker

Posts: 171
Name: John Diamond
Trades: 0
That's a good question. I usually just "try things" and then see the results, as I am no professional web designer, so I can't help you more than that! (apparently, my help was still worth it :P ...)
__________________
John

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
JohnDiamond is offline
Reply With Quote
View Public Profile
 
Old 11-17-2008, 09:59 AM Re: Coding Problems that Newbie Can't Figure Out
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
First of all, your #container isn't containing it's contents because you have not properly cleared your floats.

Secondly, you're approach to the layout is less than optimal. Instead of defining absolute heights so you can fit your static background in it, make a smaller horizontal 'slice' of the main part of your content background, and repeat that vertically, that will allow ANY height. Then all you need to do is add a top and bottom to hold the rounded top and bottom of the rounded box.

It is generally not necessary to 'nail' down heights like that, especially if you change your approach to how you define the backgrounds. It looks as if you're still 'slicing' as if you were using tables, you need to readjust your thinking a bit for CSS-based layouts.

Try this: www.cssslicingguide.com
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-20-2008, 12:07 AM Re: Coding Problems that Newbie Can't Figure Out
Skilled Talker

Posts: 66
Trades: 0
LadynRed, when I posted this up originally I was using one image for each of the backgrounds in the different <div>'s. After reading your reply, I went back in and re-did it using just a slice of the original image and having it "repeat" per your suggestion.

Quote:
your #container isn't containing it's contents because you have not properly cleared your floats.
I'm not sure that I understand this. Do you mean that I need to add something like "clear: both;" in my #container to properly clear the floats? Also, I'm not sure that I understand what you ment abou nailing down heights.

If you would elaborate, I would appreciate it.

JohnDiamond, I play around alot with what I do. I can learn by just reading. I have to try it to see it work. So, like you, I try different things just to see how they turn out.

Again, thanks for all the help.
JustAGuy is offline
Reply With Quote
View Public Profile
 
Old 11-20-2008, 02:29 PM Re: Coding Problems that Newbie Can't Figure Out
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Do you mean that I need to add something like "clear: both;" in my #container to properly clear the floats? Also, I'm not sure that I understand what you ment abou nailing down heights.
This can explain it better than I can - and give you different methods:
http://css-discuss.incutio.com/?page=ClearingSpace

What I meant by 'nailing down heights' is that it's generally not necessary to define a fixed height as the divs will stretch vertically to hold what's in them. You can utilize min-height (which IE6 doesn't understand) to define a minimum, it just depends on your layout.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Coding Problems that Newbie Can't Figure Out
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.37229 seconds with 12 queries