Why is My HTML Footer Not Displaying Correctly?

  • Context: HTML/CSS 
  • Thread starter Thread starter camel-man
  • Start date Start date
  • Tags Tags
    Html
Click For Summary

Discussion Overview

The discussion revolves around a user's issue with the footer not displaying correctly in their HTML layout. The focus is on the technical aspects of HTML and CSS, specifically related to layout and styling.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • The user presents their HTML and CSS code, expressing uncertainty about the footer's functionality.
  • One participant points out that "bottom" is not a valid float value.
  • The user seeks clarification on what to change the float value to and questions whether a data type change is necessary.
  • Another participant references a resource for valid float values but suggests that the legal values may not resolve the issue.

Areas of Agreement / Disagreement

Participants have identified an issue with the float value but have not reached a consensus on the appropriate solution or alternative approach.

Contextual Notes

There is a mention of a potential misunderstanding regarding CSS float values, but the discussion does not clarify the implications of changing the float property or other related CSS properties.

camel-man
Messages
76
Reaction score
0
Not sure why my footer is not working correctly in my file, anyone see what is wrong?

Code:
<html>
<head>
<title> Layout with Divs </title>
<link href="divstyle.css" rel="stylesheet" type="text/css" /> 
</head>


<body>

<div id="outer">
<div id="bannerbox"> Banner </div>
<div id="hyperlink"> Hyperlink </div>
<div id="content"> Content </div>
<div id="footer"> Footer </div>
</div>

</body>
</html


*****~And this is my css~*****

body{
background-color: #424242;
margin-top: 0;
padding-bottom: 60px;

}

div{
border: 1px solid black;
}

#outer{ 
border: 1px dotted #ee0bbb;
width: 603px;
margin-left: 140px;
background-color: white;
height: 800px;
postion: relative;
}

#bannerbox{ 
width: 480px;
height: 70px;
margin-left: 53px;
margin-top: 5px;
} 

#hyperlink{
width: 150px;
height: 200px;
margin-top: 40px;
margin-left: 10px;
float: left;

}

#content{
width: 350px;
height: 400px;
margin-top: 40px;
margin-right: 10px;
float: right;
}

#footer {
width: 50px;
height: 40px;
margin-top: 40px;
margin-right: 10px;
float: bottom;
}
 
Technology news on Phys.org
What do you suggest I change it to? Should i change the data type ?
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K