celexia
07-01-2010, 08:26 AM
Hello, I am currently pretty new to HTML and CSS, I do know most of the functions of it but I am stuck on a couple things. Also, I have read some of the previous threads but I can't find what I'm looking for, but I am sure these questions are asked all the time on a forum like this, so I'm sorry but I really need some help. :thumbsup:
I am currently coding a layout I made for one of my friends, and I have a couple problems.
#1) I put it together using the <div> tags, but when I change resolutions it is all messed up and doesn't look how it should look. Am I doing the coding wrong? Can you check to see why this is happening in my code?
#2) I don't know how to make my content area stretch down when I have more content then my current part of the layout will allow. Right now, if I have more type then should be there, it runs down on the other parts of my template where I don't want it to be, I want it to extend the area that the type goes rather then have a scrolling box. How do I do this? I have no idea of even where to start. Let me give a screenshot so you can see what's what.
If you see the circled area, the text is going down into the bottom where I don't want it. I want the area above to get longer and adapt to having more text and have the bottom go down more. I'm not so sure I told this correctly, but I don't know how to explain it.
Here are my codes, so you know what is going on.
HTML
<html>
<head>
<title>Everlasting Sacred Path</title>
<script type="text/javascript" src="java.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="shortcut icon" href="images/flavicon.png" type="image/png" />
</head>
<body>
<div id="logo"><img src="images/esp.png"></div>
<div id="navbar"><img src="images/navbar.png"></div>
<div id="body"><img src="images/body.png"></div>
<div id="bottomright"><img src="images/bottomright.png"></div>
<div id="bottomleft"><img src="images/bottomleft.png"></div>
<div id="topleft"><img src="images/topleft.png"></div>
<div id="topright"><img src="images/topright.png"></div>
<div id="navtop"><img src="images/navtop.png"></div>
<div id="navbottom"><img src="images/navbottom.png"></div>
<div id=home><a href="index.html" onmouseover="image1.src='images/home2.png';"
onmouseout="image1.src='images/home1.png';">
<img name="image1" src="images/home1.png" border=0></a>
</div>
<div id=about><a href="about.html" onmouseover="image2.src='images/about2.png';"
onmouseout="image2.src='images/about1.png';">
<img name="image2" src="images/about1.png" border=0></a></div>
<div id=lore><a href="lore.html" onmouseover="image3.src='images/lore2.png';"
onmouseout="image3.src='images/lore1.png';">
<img name="image3" src="images/lore1.png" border=0></a></div>
<div id=alliance><a href="allies.html" onmouseover="image4.src='images/alliance2.png';"
onmouseout="image4.src='images/alliance1.png';">
<img name="image4" src="images/alliance1.png" border=0></a></div>
<div id=members><a href="members.html" onmouseover="image5.src='images/members2.png';"
onmouseout="image5.src='images/members1.png';">
<img name="image5" src="images/members1.png" border=0></a></members></div>
<div id=forums><a href="forums.html" onmouseover="image6.src='images/forums2.png';"
onmouseout="image6.src='images/forums1.png';">
<img name="image6" src="images/forums1.png" border=0></a></div>
<div id="content">
About Our Guild
The Everlasting Sacred Path Guild entered the realm of Guild Wars on June 18th, 2005. Since that time we have grown into a large gaming community that has enjoyed a consistent and dedicated membership with a focus on camaradarie.
We maintain a high level of intereaction among guild members by hosting a variety of activities and events each week for the guild and for the alliance. While our primary focus in Guild Wars is PvE we explore all arenas within the game, from quests and missions to all the various formats of player vs player combat. The Everlasting Sacred Path is a founder of a Guild Wars alliance, and we shall be here with our allies for the entire span of adventures in this game, as well as any that we choose to expand into in the future.
Our members are always at the ready to band together and embark upon the next quest or to assist those who are in need of reliable companions. The Everlasting Sacred Path stands to foster trust and honor in a realm that is so often surrounded by chaos.
Rules And Standards
Guild members and those wishing to be considered for membership agree to the following rules and standards of conduct. Our rules and simple, and rely upon a certain degree of common sense and courtesy. If you are accepted into the guild, then chances are it is apparent that this is no issue for you.
*
No game cheats or exploits of any kind are allowed. Anyone found to be taking an unfair advantage through these means will be removed from the guild. Thankfully, Guild Wars is a game where this is not much of an issue, but should something arise, I do not want to see anyone in an ESP cape found taking advantage of a hack or exploiting a bug in the game for the purpose of self advancement.
*
Everlasting Sacred Path is a roleplay optional guild. We do not have any rules to determine if/when a member has to act in-character. However, all are encouraged to write background stories for their characters and support for RP is provided through a variety of roleplay forums and events.
*
All character names used in the guild must fit within a roleplay envorinment, even if you do not choose to write a background stories for your characters. (i.e. no "I Heelz You Gud" or "Leet Assassin" type names)
*
People wishing to join must have a strong interest in grouping with guild members and taking part in guild events at times when they are able.
*
Guild members are expected to treat other members and members of the alliance with respect and understanding. In the event that a conflict does arrise please contact a guild leader or officer with your concerns.
*
We are a guild that enjoys providing assistance to other members with any and all parts of the game. We do ask that when a member requests help, they do so in a curteous manner and understand that prior commitments may prevent people from being able to take immediate action. Persistant whining, begging, and making unreasonable demands will be taken as grounds for dismissal from the guild.
*
Guild members should act appropriately in all settings and always serve as a representative of the guild to the gaming community.
*
Members who are absent from the guild for more than a month without explanation may be removed and will hence have to reapply for membership should they later wish to come back. Members may take a leave of absence for as long as they need so long as some form of notification is provided. They may return as an active member at any time.
</div>
</body>
</html>
CSS
a {
outline:none; /* FF1.5+ IE7+*/
-moz-outline: /* FF<=1.5*/
}
body
{
background-image:url('images/sylvthackerybg.jpg');
background-attachment: fixed;
background-position: center top;
background-color: black;
color:#c0b79a;
font-family:georgia, "times new roman", serif;
}
#navbar {
position: absolute;
top: 15%;
left: 2%;
width: 977px;
height: 50px;
}
#logo {
position: absolute;
top: 0px;
left: 30%;
width: 330px;
height: 75px;
}
#body {
position: absolute;
top: 25%;
left: 2%;
width: 659px;
height: 179px;
}
#bottomright {
position: absolute;
top: 100%;
left: 68%;
width: 659px;
height: 179px;
}
#topright {
position: absolute;
top: 31%;
left: 68%;
width: 659px;
height: 179px;
}
#bottomleft {
position: absolute;
top: 100%;
left: 28%;
width: 659px;
height: 179px;
}
#topleft {
position: absolute;
top: 31%;
left: 28%;
width: 659px;
height: 179px;
}
#middle {
position: absolute;
top: 59%;
left: 33.2%;
width: 636px;
height: 279px;
}
#navtop {
position: absolute;
top: 31%;
left: 4%;
width: 636px;
height: 279px;
}
#navbottom {
position: absolute;
top: 43%;
left: 4%;
width: 636px;
height: 279px;
}
#home {
position: absolute;
top: 17.3%;
left: 8.3%;
width: 132px;
height: 33px;
}
#about {
position: absolute;
top: 17.3%;
left: 21.5%;
width: 132px;
height: 33px;
}
#lore {
position: absolute;
top: 17.3%;
left: 34.7%;
width: 132px;
height: 33px;
}
#alliance {
position: absolute;
top: 17.3%;
left: 52.9%;
width: 132px;
height: 33px;
}
#members {
position: absolute;
top: 17.3%;
left: 66.2%;
width: 132px;
height: 33px;
}
#forums {
position: absolute;
top: 17.3%;
left: 79.5%;
width: 132px;
height: 33px;
}
#content {
position: absolute;
top: 33%;
left: 30%;
width: 636px;
height: 33px;
}
Java
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
image1 = new Image();
image1.src = "images/home2.png";
image2 = new Image();
image2.src = "images/about2.png";
image3 = new Image();
image3.src = "images/lore2.png";
image4 = new Image();
image4.src = "images/allies2.png";
image5 = new Image();
image5.src = "images/members2.png";
image6 = new Image();
image6.src = "images/forums2.png";
// End -->
</script>
I am currently coding a layout I made for one of my friends, and I have a couple problems.
#1) I put it together using the <div> tags, but when I change resolutions it is all messed up and doesn't look how it should look. Am I doing the coding wrong? Can you check to see why this is happening in my code?
#2) I don't know how to make my content area stretch down when I have more content then my current part of the layout will allow. Right now, if I have more type then should be there, it runs down on the other parts of my template where I don't want it to be, I want it to extend the area that the type goes rather then have a scrolling box. How do I do this? I have no idea of even where to start. Let me give a screenshot so you can see what's what.
If you see the circled area, the text is going down into the bottom where I don't want it. I want the area above to get longer and adapt to having more text and have the bottom go down more. I'm not so sure I told this correctly, but I don't know how to explain it.
Here are my codes, so you know what is going on.
HTML
<html>
<head>
<title>Everlasting Sacred Path</title>
<script type="text/javascript" src="java.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="shortcut icon" href="images/flavicon.png" type="image/png" />
</head>
<body>
<div id="logo"><img src="images/esp.png"></div>
<div id="navbar"><img src="images/navbar.png"></div>
<div id="body"><img src="images/body.png"></div>
<div id="bottomright"><img src="images/bottomright.png"></div>
<div id="bottomleft"><img src="images/bottomleft.png"></div>
<div id="topleft"><img src="images/topleft.png"></div>
<div id="topright"><img src="images/topright.png"></div>
<div id="navtop"><img src="images/navtop.png"></div>
<div id="navbottom"><img src="images/navbottom.png"></div>
<div id=home><a href="index.html" onmouseover="image1.src='images/home2.png';"
onmouseout="image1.src='images/home1.png';">
<img name="image1" src="images/home1.png" border=0></a>
</div>
<div id=about><a href="about.html" onmouseover="image2.src='images/about2.png';"
onmouseout="image2.src='images/about1.png';">
<img name="image2" src="images/about1.png" border=0></a></div>
<div id=lore><a href="lore.html" onmouseover="image3.src='images/lore2.png';"
onmouseout="image3.src='images/lore1.png';">
<img name="image3" src="images/lore1.png" border=0></a></div>
<div id=alliance><a href="allies.html" onmouseover="image4.src='images/alliance2.png';"
onmouseout="image4.src='images/alliance1.png';">
<img name="image4" src="images/alliance1.png" border=0></a></div>
<div id=members><a href="members.html" onmouseover="image5.src='images/members2.png';"
onmouseout="image5.src='images/members1.png';">
<img name="image5" src="images/members1.png" border=0></a></members></div>
<div id=forums><a href="forums.html" onmouseover="image6.src='images/forums2.png';"
onmouseout="image6.src='images/forums1.png';">
<img name="image6" src="images/forums1.png" border=0></a></div>
<div id="content">
About Our Guild
The Everlasting Sacred Path Guild entered the realm of Guild Wars on June 18th, 2005. Since that time we have grown into a large gaming community that has enjoyed a consistent and dedicated membership with a focus on camaradarie.
We maintain a high level of intereaction among guild members by hosting a variety of activities and events each week for the guild and for the alliance. While our primary focus in Guild Wars is PvE we explore all arenas within the game, from quests and missions to all the various formats of player vs player combat. The Everlasting Sacred Path is a founder of a Guild Wars alliance, and we shall be here with our allies for the entire span of adventures in this game, as well as any that we choose to expand into in the future.
Our members are always at the ready to band together and embark upon the next quest or to assist those who are in need of reliable companions. The Everlasting Sacred Path stands to foster trust and honor in a realm that is so often surrounded by chaos.
Rules And Standards
Guild members and those wishing to be considered for membership agree to the following rules and standards of conduct. Our rules and simple, and rely upon a certain degree of common sense and courtesy. If you are accepted into the guild, then chances are it is apparent that this is no issue for you.
*
No game cheats or exploits of any kind are allowed. Anyone found to be taking an unfair advantage through these means will be removed from the guild. Thankfully, Guild Wars is a game where this is not much of an issue, but should something arise, I do not want to see anyone in an ESP cape found taking advantage of a hack or exploiting a bug in the game for the purpose of self advancement.
*
Everlasting Sacred Path is a roleplay optional guild. We do not have any rules to determine if/when a member has to act in-character. However, all are encouraged to write background stories for their characters and support for RP is provided through a variety of roleplay forums and events.
*
All character names used in the guild must fit within a roleplay envorinment, even if you do not choose to write a background stories for your characters. (i.e. no "I Heelz You Gud" or "Leet Assassin" type names)
*
People wishing to join must have a strong interest in grouping with guild members and taking part in guild events at times when they are able.
*
Guild members are expected to treat other members and members of the alliance with respect and understanding. In the event that a conflict does arrise please contact a guild leader or officer with your concerns.
*
We are a guild that enjoys providing assistance to other members with any and all parts of the game. We do ask that when a member requests help, they do so in a curteous manner and understand that prior commitments may prevent people from being able to take immediate action. Persistant whining, begging, and making unreasonable demands will be taken as grounds for dismissal from the guild.
*
Guild members should act appropriately in all settings and always serve as a representative of the guild to the gaming community.
*
Members who are absent from the guild for more than a month without explanation may be removed and will hence have to reapply for membership should they later wish to come back. Members may take a leave of absence for as long as they need so long as some form of notification is provided. They may return as an active member at any time.
</div>
</body>
</html>
CSS
a {
outline:none; /* FF1.5+ IE7+*/
-moz-outline: /* FF<=1.5*/
}
body
{
background-image:url('images/sylvthackerybg.jpg');
background-attachment: fixed;
background-position: center top;
background-color: black;
color:#c0b79a;
font-family:georgia, "times new roman", serif;
}
#navbar {
position: absolute;
top: 15%;
left: 2%;
width: 977px;
height: 50px;
}
#logo {
position: absolute;
top: 0px;
left: 30%;
width: 330px;
height: 75px;
}
#body {
position: absolute;
top: 25%;
left: 2%;
width: 659px;
height: 179px;
}
#bottomright {
position: absolute;
top: 100%;
left: 68%;
width: 659px;
height: 179px;
}
#topright {
position: absolute;
top: 31%;
left: 68%;
width: 659px;
height: 179px;
}
#bottomleft {
position: absolute;
top: 100%;
left: 28%;
width: 659px;
height: 179px;
}
#topleft {
position: absolute;
top: 31%;
left: 28%;
width: 659px;
height: 179px;
}
#middle {
position: absolute;
top: 59%;
left: 33.2%;
width: 636px;
height: 279px;
}
#navtop {
position: absolute;
top: 31%;
left: 4%;
width: 636px;
height: 279px;
}
#navbottom {
position: absolute;
top: 43%;
left: 4%;
width: 636px;
height: 279px;
}
#home {
position: absolute;
top: 17.3%;
left: 8.3%;
width: 132px;
height: 33px;
}
#about {
position: absolute;
top: 17.3%;
left: 21.5%;
width: 132px;
height: 33px;
}
#lore {
position: absolute;
top: 17.3%;
left: 34.7%;
width: 132px;
height: 33px;
}
#alliance {
position: absolute;
top: 17.3%;
left: 52.9%;
width: 132px;
height: 33px;
}
#members {
position: absolute;
top: 17.3%;
left: 66.2%;
width: 132px;
height: 33px;
}
#forums {
position: absolute;
top: 17.3%;
left: 79.5%;
width: 132px;
height: 33px;
}
#content {
position: absolute;
top: 33%;
left: 30%;
width: 636px;
height: 33px;
}
Java
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
image1 = new Image();
image1.src = "images/home2.png";
image2 = new Image();
image2.src = "images/about2.png";
image3 = new Image();
image3.src = "images/lore2.png";
image4 = new Image();
image4.src = "images/allies2.png";
image5 = new Image();
image5.src = "images/members2.png";
image6 = new Image();
image6.src = "images/forums2.png";
// End -->
</script>