In need of a few fixes

Hi,

Here’s a quick revision to handle media queries for smaller widths. You will need to tweak it if the size of your custom fonts causes overlaps but that should be a simple matter.


<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Miners Union</title>
<!-- force IE8+ into standards mode -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- the next scripts are the html5shiv for IE8 and under to use html5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="styles.css">
<style>
@font-face {
	font-family: 'minecraftfont';
	src: url('./minecraftfont.eot');
	src: local('minecraftfont'), url('./minecraftfont.woff') format('woff'), url('./minecraftfont.ttf') format('truetype');
}
body {
	margin: 0;
	background-image:url(http://igeorgetaylor.ddns.net/mu/bg.jpg);
}
.title {
	padding-left:50px;
	float: left;
	font-size: 30px;
	margin-top: 5px;
}
h1 {
	color: #a2a2a2;
	font-family: 'minecraftfont';
	padding-left: 30px;
}
.nav {
	display: block;
	text-align: center;
	height: 80px;
	width:90%;
	border-radius: 2px;
	margin:0 auto 20px;
	background-color: #f5f5f5;
	border-radius: 2px;
	padding-bottom: 10px;
}
nav {
	margin-top: 30px;
	padding-bottom: 10px;
	display:inline-block;
	height:2em;
	border-radius: 2px;
}
.navlink {
	padding-top: 10px;
	color: white;
	text-decoration: none;
	padding-left: 30px;
	padding-right: 30px;
	font-family: 'minecraftfont';
	display: inline-block;
	height: 2em;
	background-color: #a2a2a2;
	border:1px solid transparent;
}
.navlink:hover {
	background-color: white;
	color: #a2a2a2;
	border-color: #a2a2a2;
	border-radius: 2px;
}
.br {
	border-top-left-radius: 2px;
	border-bottom-left-radius: 2px;
}
.bl {
	border-top-right-radius: 2px;
	border-bottom-right-radius: 2px;
}
#wrapbod {
	padding-top: 30px;
	border-radius: 2px;
	margin-top:30px;
	background-color: #d8d8d8;
	width:80%;
	max-width:1024px;
	min-width:800px;
	margin:30px auto 0;
	border-right-style: solid;
	border-right-width:15px;
	border-right-color: #8f8f8f;
	padding-bottom: 30px;
}
#welcome {
	background-color: 6a6a6a;
	border-radius: 2px;
	width:90%;
	margin: auto;
}
.welc {
	width: 100%;
}
#mu {
	width: 90%;
	margin: auto;
	background-color: #f5f5f5;
	border-radius: 2px;
}
p {
	padding: 30px;
}
#header {
	display:block;
	margin:0 0 20px;
	text-align:center;
}
@media screen and (max-width:900px) {
	.navlink {
		padding-left: 15px;
		padding-right: 15px;
	}
}
@media screen and (max-width:820px) {
	#wrapbod {
		min-width:0;
		width:auto;
		margin:20px 5px;
	}
	.navlink {
		padding-left: 10px;
		padding-right: 10px;
	}
}
@media screen and (max-width:700px) {
	.title {
		float:none;
		display:block;
		margin:0 auto;
		padding:10px 0 0
	}
	.title br {
		display:none
	}
	.nav {
		height:auto;
		margin:10px auto
	}
	nav {
		margin:10px auto 0;
		height:auto
	}
}
@media screen and (max-width:500px) {
	nav {
		display:block;
		margin:5px;
	}
	.navlink {
		padding:10px 2px;
		display:block;
		height: auto;
		margin:5px 0;
	}
}
</style>
</head>
<body>
<div id="wrapbod">
		<header id="header">
				<div class="nav">
						<h1 class="title">MINERS <br />
								UNION...</h1>
						<nav> <a class="navlink br" href="#">Home</a> <a class="navlink" href="#">Info</a> <a class="navlink" href="#">Apply</a> <a class="navlink" href="#">Donate</a> <a class="navlink bl" href="#">Map</a> </nav>
				</div>
				<div id="welcome"> <img src="http://igeorgetaylor.ddns.net/mu/welcome.png" class="welc" alt="Welcome to Miners Union"> </div>
		</header>
		<div id="mu">
				<h1>Miners Union</h1>
				<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris non scelerisque velit. Curabitur tortor ligula, elementum ac laoreet malesuada, sollicitudin vitae neque. Nulla eu sodales metus, ut congue enim. Proin nec hendrerit leo. Donec in orci vel tortor ornare molestie quis ut metus. Suspendisse in sapien lobortis, commodo sem eget, adipiscing massa. Cras ultrices massa ac dui ornare ultricies. Aliquam eget mi in mauris consequat commodo. Donec vehicula sem egestas lobortis porttitor. Phasellus ut convallis erat, id dapibus odio. Vivamus ut augue nisi. Aliquam erat volutpat. Cras vel dui ligula. </p>
		</div>
</div>
</body>
</html>

The above is a working demo so just save it and run it in your browser and then open the page wider and smaller to see the effect. You can then fine tune it as required. It has all the elements in place for you to work with so don’t leave anything out as they are in there for a reason.

BTW there shouldn’t be more than one h1 per page (even though html5 allows this) as a page really has only one main heading.

Hi, back again sorry for the delayed response.

The whole #wrapbod area still seems to be getting bigger as the page expands. I wanted it to get to a suitable size and then have the background fill in the blank areas.

That won’t happen with the code I gave you in post #21 (or with the code I gave you earlier) unless we are talking about different things.

Did you try the demo I gave you above and see if it does what you want? The css I added in the head replaces all of your existing css so don’t run both together.I spent quite a bit of time on it so it would be a shame for it to go to waste.

Also I don’t see that you have added any of the fixes we gave you to your original page yet either?

Also I don’t see that you have added any of the fixes we gave you to your original page yet either?

I don’t own the website, it was done by someone who offered to create the website but then disappeared. Now I’m trying to fill in the mistakes with my very little knowledge of html.

Turns out my Brackets (my text-editor) was being buggy as usual and not reading the code until I saved it a few times. I apologise for all the confusion, what you have written works fantastic.

is the site actually up, can we see it? was curious as to what files it has.

Only local atm, sorry

The original site is linked to in post #1.:slight_smile:

d’ho Right you are Paul. Forgot!