0

Sir I have these codes

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> <title>Test Page</title> <style type="text/css">
html {
overflow: auto;
}
body {
font-family: Georgia, "Times New Roman", Times, serif;
}

#container
{
position: absolute;
margin: auto;
left: 0;
right: 0;
top:0;
bottom:0;
background-color: #FFF;
border: 1px solid #06F;
box-shadow: 0px 0px 30px rgba(135, 206, 235, 0.78);
width:50%;
height:350px;
overflow:auto;
}

#small_header {
width: 97%;
height: 20px;
padding: 5px;
overflow: hidden;
text-align: left;
color:white;
border: 1px solid #CCC;
background:#393;
}

#small_footer {
width: 97%;
height: 20px;
padding: 5px;
overflow: hidden;
text-align: left;
color:white;
border: 1px solid #CCC;
margin-bottom:0;
background:#39C;
}
</style> </head> <body> <div id='container'> <div id="small_header">Header</div> <div id="small_footer">Footer</div> </div> </body> </html>

Footer div is under Header div but I want to put footer div at the bottom of parent div like this image

[IMG]http://i65.tinypic.com/2dlirt1.png[/IMG]

4
Contributors
8
Replies
79
Views
1 Year
Discussion Span
Last Post by diafol
0

Fair one FC, but this post is a copy of http://www.codingforums.com/html-and-css/378746-footer-div.html . I can see no reason for copying a question from another forum (5 years ago!) and re-posting it here. Although XHTML has its uses and sometimes only XHTML will do, we usually find that most questions using it in this forum tend to be copied from other forums, or script kiddies just doing what script kiddies do. Hence my comment. Snarky, yes. Relevant, possibly. :)

1

5 years ago!

Two months ago as far as I can tell from the link you posted (July 20, 2016) and two months ago the same thread is started here (actual date unknown, any way to view the actual date/time stamp on posts? "Two months ago" is a bit vague). Seems like someone with two accounts on two different forums posted threads on each forum without telling the other forum. Poor ettiquette, certainly, unappreciative of wasting other peoples' time, yep, but I don't get the "script kiddie", "rip off", and "getting caught" part, and in my recent experience, I've called people on cross-posting and wasting time and they've been puzzled, then got the point when I explained it. They genuinely weren't intending to be selfish, just had never thought about it. Stop me before I go on an anti-Millennial "kids these days, get off my lawn" screed.

This seems like just another instance of someone posting on two separate forums and someone with an answer chiming in and not noticing the thread start date (you made the same mistake here, I believe), a daily occurrence on Daniweb, so common as to not merit even a momentary spike in blood pressure on the annoyance scale. Unless there's been some mod editing or whatever behind the scenes that's not obvious.

0

5 years ago - was when the original post was placed in the other forum. Copied two months ago :)

0

See screenshot (green box), upper left corner -- July 20, 2016. What am I missing? Perhaps you are looking at the October 2011 join date?

Screenshot.jpg

-2

I was simply answering the question. I didn't look at the HTML header and I didn't go searching through old DaniWeb posts to see if the question was duplicated. I actually expect that questions will be duplicated as a matter of course, so it really doesn;t bother me. If I answer a question, it is to genually help someone learn. I actually despise people who think they are better than someone else because they have more knowlege and look specifically for ways to make the less knowlegable feel stupid or wrong for asking a question. Once upon a time ago I was a moderator here...you know, back in the days when people were helpful.

3

Yup I was a moderator too. But despise away, I won't lose any sleep over it. FTR - I wasn't looking for ways to make people look stupid, but there we are, you have your opinion. ;) Don't get into a pissing competition about who helps people the most on this site. Heh, heh. Funny.

Edited by diafol

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.