I'm really new with webdesign so it's expected that I'm lost. I am nearing close to the end of my design, this of course doesn't count debugging or anything like that. But I am now trying to put in my footer, but nothing is coming in. The only thing coming in is my text from the footer, and even that is not in the right place.
I made sure to do the clear: both; command in my footer. But it's still not showing up. I tried adding the float:bottom option but that does nothing either.
The file name and file format is correct as well for my footer, checked it many times over.
Yeah I realize it isn't, I intend to go through it all to see what is needed and what isn't. But like I said I'm pretty new, and just pretty much trying a few things to see if I could get something to do something.
I was actually following a tutorial from net tuts to build this site. And came this far, all I need is the footer, add in links and my site will be pretty much done. I need to know what the issue is with this code and why I cant get the footer in.
If you got this from nettuts, why would you have improper CSS? Especially like a bottom float? Also, not sure if you forgot an opening tag when you copied or not but make sure to have that at the beginning of your div.
div id="footer">
HTML You need to have an unordered list and list items before your anchor tags. e.g.
<ul><li><a href="#">Home</a></li></ul>
CSS Get rid of the bottom float as it does not exist.
The only reason I messed around with the code, when I did exactly what the tut said to do the footer still wasn't there. I cant help but think that this has something to do with some other code that messed something else up.
Your problem is probably coming from the html and/or css before the footer, because your screen shot does show the footer (without background image), but not in the right place. It is difficult to help without seeing the code.
I'm in the process of going through all my code, just to clean up what I don't need. Once I'm done doing that I'll post all my html and css on here. Hopefully I can figure out the problem in the mean time and the issue resolves itself after some cleaning.
jesb, one of the first things to do when troubleshooting is to run your code (both html and css) through a validator. This will point out any errors that you have.
Your posted html has 8 errors, all easy to correct, and one directly relating to the problem. You have an extra closing div tag (in the header area) which closes the container too soon.
You have also been trying to correct positioning with margins (negative and normal) which, once the html is cleaned up, is having an effect on numerous elements. So, you may need to back-track a bit, changing or eliminating those margins.
You have an extraneous clearing div (which I think was recommended above) - not only is this not needed, but you don't even have a class addressing it in the css.
The css has a missing closing brace after the textarea selector rendering the #footer ruleset useless.
O.k, so I managed to finally see the footer take place. Still having a problem with getting the image to appear though. I've tested it by using color instead and that comes up fine and I can clearly see a footer now, so that's good. But still no image will appear that I saved.
I'm guessing this has something to do with this error.
Parse Error (images/footer.jpg);
I don't know what the issue is with this. The error is kind of vague for a noob like me.
I'm going through the validator and cleaning it up like you suggest. But there some things I'm a little confused about that brings up errors.
I'm told that ul does not belong possibly because I have inline elements with block elements. But if a UL is a block element, and anchor tag is a inline element, than how do we make lists into links? I guess I'm confused on why I cant have lists with an a tag, putting a tags with lists seem to be a common thing on the web, so what exactly do they mean by the error.
Error: element ul not allowed here; possible cause is an inline element containing a block-level element
Also I get a lot of errors for webkit radius, shadow box, ect. Are these newer properties that come out as errors and should they be ignored?
You mentioned eliminating margins, but it's those margins I used that allowed me to put my layout together where I want certain things. I tried many different properties and this seemed to of what worked. Taking out all these will surely mess it all up. But if there is an easier way of doing it perhaps I should.
Thanks so much for all your help. :) Everything is working great, and fully validated other than 8 errors coming from css due to some stuff like webkit radius and box shadow that I assume is just not being recognized?
If you are using webkit and moz CSS3, they are browser specific and do not validate, but don't worry about it. You do realize however that this code will not display in IE?
Well so much from being free and clear. It seems my navigation and 3 columns move as you minimize the page via the ctrl and -. It's doesn't stay within my container. What do you think would cause that to happen with the code that I provided?
Hello, footer is the last div and box on the bottom of the website, also the div id footer should be outside and container should be inside the div id footer and everything should be inside the container,as well as take out clear both from div footer, and check your html page and css page for any issues or mistakes.
Taking out clear both; from footer eliminates my footer all together creating more problems pushing my footer content into the main background. And everything is in my main container div which is the main container of the css. Shouldn't all my other divs stay within my container and not move when you zoom or zoom out the window?
Well I managed to fix my nav and my columns from moving when you zoom in and out by changing my footer container to relative instead of absolute. But now my footer is keeping the same pixels of the container. I want my footer to extend across the screen just as my main background does. I tried the repeat-x like my background image but that's not working.
I made sure to do the clear: both; command in my footer. But it's still not showing up. I tried adding the float:bottom option but that does nothing either.
The file name and file format is correct as well for my footer, checked it many times over.
Here is my html
And than here is some of the css for this specific div.
Any ideas on what the issue could be?
I don't have any link, no.
http://css-tricks.com/video-screencasts/1-converting-a-photoshop-mockup-part-1-of-3/
HTML
You need to have an unordered list and list items before your anchor tags.
e.g.
CSS
Get rid of the bottom float as it does not exist.
Add these prefixes to border-radius
I would really need a link to check for any visual errors beyond this.
link to a screenshot.
Now see if it works better!
It is difficult to help without seeing the code.
HTML code
Now here is the CSS
Your posted html has 8 errors, all easy to correct, and one directly relating to the problem. You have an extra closing div tag (in the header area) which closes the container too soon.
You have also been trying to correct positioning with margins (negative and normal) which, once the html is cleaned up, is having an effect on numerous elements. So, you may need to back-track a bit, changing or eliminating those margins.
You have an extraneous clearing div (which I think was recommended above) - not only is this not needed, but you don't even have a class addressing it in the css.
The css has a missing closing brace after the textarea selector rendering the #footer ruleset useless.
I'm guessing this has something to do with this error.
Parse Error (images/footer.jpg);
I don't know what the issue is with this. The error is kind of vague for a noob like me.
I'm going through the validator and cleaning it up like you suggest. But there some things I'm a little confused about that brings up errors.
I'm told that ul does not belong possibly because I have inline elements with block elements. But if a UL is a block element, and anchor tag is a inline element, than how do we make lists into links? I guess I'm confused on why I cant have lists with an a tag, putting a tags with lists seem to be a common thing on the web, so what exactly do they mean by the error.
Error: element ul not allowed here; possible cause is an inline element containing a block-level element
Also I get a lot of errors for webkit radius, shadow box, ect. Are these newer properties that come out as errors and should they be ignored?
You mentioned eliminating margins, but it's those margins I used that allowed me to put my layout together where I want certain things. I tried many different properties and this seemed to of what worked. Taking out all these will surely mess it all up. But if there is an easier way of doing it perhaps I should.
Thanks to those who have helped.
url (/images/footer.jpg)
Lines like these are wrong
You are missing the ul tags - like this
css
footer is the last div and box on the bottom of the website, also the div id footer should be outside and container should be inside the div id footer and everything should be inside the container,as well as take out clear both from div footer, and check your html page and css page for any issues or mistakes.
Any ideas?
Basically other div elements were not closed within my container which was being ignored and not staying in my container.
Consider this solved.
Thanks again guys. :)