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
Trouble With A DIV Not Positioned Where I Want It To
Old 11-03-2007, 07:50 AM Trouble With A DIV Not Positioned Where I Want It To
Junior Talker

Posts: 1
Name: M
Trades: 0
Hello!

I am new to this forum. I'm working on my first pure CSS layout and am having a bit of trouble with placing some elements properly.

So far, it's going pretty well. I am stumbling when it comes to one thing. There is a gradient that is supposed to go from the bottom of the area that contains the navigation. It's a very small 36px gradient. For some reason, can't get it to sit in the right place. It's sitting inside the nav div, when it should be below. I'm sure it's something completely simple, but I am stumped.

So you can see what I am talking about, see the link below as I made a screencap video of my issue. On that page is the CSS/HTML... so if anyone has time to look over the files to see where my error is, I'd greatly appreciate it. Or if you want me to post the stuff here, let me know. It's just a bunch of long code and I didn't want to post it direct in the forum to save space.

The link to the video is:
h##p://www.mbstia.com/sbp-alt-menu/sbp-alt-menu.html
Please replace the ## with tt

Thanks so much... I think I'm almost there!

Thanks for all the help and suggestions.
webgyrl1 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-03-2007, 10:38 AM Re: Trouble With A DIV Not Positioned Where I Want It To
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
WebGyrl, I'm not sure I understand what you want too achieve...

Do you want to have the menu and the div bg together, but next to the content, or that the menu stays on top, and the bg div goes below the menu, with the main content ?

I see that when I open your file on my comp (linux+firefox)
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 11-03-2007, 11:35 AM Re: Trouble With A DIV Not Positioned Where I Want It To
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
In #bg section of the css add
clear: both;
joder is offline
Reply With Quote
View Public Profile
 
Old 11-03-2007, 11:52 AM Re: Trouble With A DIV Not Positioned Where I Want It To
Defies a Status

Posts: 3,420
Trades: 0
If you move it (the background div) into the main content part and add a margin-top or something to it, it displays alright - you just can't see it because it's nearly the same colour as the background #fff!
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 11-03-2007, 02:04 PM Re: Trouble With A DIV Not Positioned Where I Want It To
L a r r y's Avatar
Super Talker

Posts: 102
Name: Larry K
Location: Arizona
Trades: 0
Quote:
Originally Posted by webgyrl1 View Post
Hello!

I am new to this forum. I'm working on my first pure CSS layout and am having a bit of trouble with placing some elements properly.
First I want to welcome you! I just signed up yesterday myself.

I installed your Gray-sbp-template files on my Localhost Web server, and Firefox with the W3C validation service installed is reporting 5 errors in your markup.

Line 7, required attribute "type" is missing.
Line 103, 2 errors, of which are failure to self-close the input tags (use /> instead of >), and a third error because the validator does not recognize Javascript's onClick.

And finally, you have failed to close a div, resulting in some possible confusion over what the CSS is trying to do. My validator cites line 128 as the point where the div is not closed, with the opening tag on line 10, but that's its interpretation of the markup, and maybe not what you intended. In other words, you may have not closed the last tag, maybe it was a tag in the middle that was not closed.

I see that the site renders in Firefox, Opera and Safari for Windows equally, with MSIE7 not carrying the white background all the way across the menu bar. Looking back at your video, your view is the view I see in MSIE7, which is not the world's best browser for viewing modern web sites.

I would suggest that you develop with Firefox, and then validate both your markup and css, and then work out what you need to add to make MSIE look right without busting the other standards-compliant browsers.

Hope this helps!
Larry
L a r r y is offline
Reply With Quote
View Public Profile Visit L a r r y's homepage!
 
Reply     « Reply to Trouble With A DIV Not Positioned Where I Want It To
 

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 0.37223 seconds with 12 queries