Carlton Posted March 27, 2011 Share Posted March 27, 2011 I'm trying to make it so that the footer will automatically adjust to the end of the page. My old page strangely adjusted it based on the content, I don't want that. This is my current CSS code for the footer. #end{ background:#000000; background-repeat:repeat-x;} Any help? Quote Link to comment https://forums.phpfreaks.com/topic/231891-background-footer/ Share on other sites More sharing options...
cssfreakie Posted March 27, 2011 Share Posted March 27, 2011 I'm trying to make it so that the footer will automatically adjust to the end of the page. My old page strangely adjusted it based on the content, I don't want that. This is my current CSS code for the footer. #end{ background:#000000; background-repeat:repeat-x;} Any help? You mean to sit at the very bottom of the page? btw, with that css, we only know that is black and that your setting repeat for an image that you didn't set. Post your HTML or post a link to your site please, we are here to adjust code not write it Quote Link to comment https://forums.phpfreaks.com/topic/231891-background-footer/#findComment-1193025 Share on other sites More sharing options...
Carlton Posted March 27, 2011 Author Share Posted March 27, 2011 I'm trying to make it so that the footer will automatically adjust to the end of the page. My old page strangely adjusted it based on the content, I don't want that. This is my current CSS code for the footer. #end{ background:#000000; background-repeat:repeat-x;} Any help? You mean to sit at the very bottom of the page? btw, with that css, we only know that is black and that your setting repeat for an image that you didn't set. Post your HTML or post a link to your site please, we are here to adjust code not write it Simply <div id="footer"> <p>dd</p> </div> I put dd for debug purposes. Quote Link to comment https://forums.phpfreaks.com/topic/231891-background-footer/#findComment-1193029 Share on other sites More sharing options...
cssfreakie Posted March 27, 2011 Share Posted March 27, 2011 So just to repeat myself, You mean at the bottom of the page? (as in window) Quote Link to comment https://forums.phpfreaks.com/topic/231891-background-footer/#findComment-1193030 Share on other sites More sharing options...
Carlton Posted March 27, 2011 Author Share Posted March 27, 2011 Mhm. Quote Link to comment https://forums.phpfreaks.com/topic/231891-background-footer/#findComment-1193034 Share on other sites More sharing options...
cssfreakie Posted March 27, 2011 Share Posted March 27, 2011 Look the less you say the less you can expect from us, we don't know what your website looks like and certainly don't know what you mean with a description like: I'm trying to make it so that the footer will automatically adjust to the end of the page. My old page strangely adjusted it based on the content, I don't want that. besides that, your website uses more than just : <div id="footer"> <p>dd</p> </div> Anyways if you want to put a div or any container at the bottom of the page. you can for instnace use position:relative or position absolute depending on what you really want, but we don't know here. because you didn';'t show or told. So try this out and see if it works for if not have a read on position relative and absolute div#bottom{ position:absolute; bottom:0; width:960px; height:200px; background:#000; } Quote Link to comment https://forums.phpfreaks.com/topic/231891-background-footer/#findComment-1193036 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.