Basic CSS/HTML stacking up one DIV beneath another in a column - html

I realise this is so basic but cannot for the life of me work why I cannot get it working and have spent the last few hours trying everything
I need to the stack up DIVs so they form a big long column, one on top of the other. They are contained inside a JQuery scrollable DIV. I could absolute position all of the DIVS inside however there will be loads of them that change fairly regularly so would like a system where they automatically line if I have to insert a new one.
So I basically have one large Scrollable DIV. Inside this I have 2 other DIVs (#Release-Monsters & #Release-Insides) each containing 3 further DIVs. It is these 2 DIVs (#Release-Monsters & #Release-Insides) that I would like to stack on top of eachother to form a column. Once I have these 2 working I would to add about 50 or so more.
My CSS is this:
#All-Releases- {
position:absolute;
left:250px;
top:210px;
width:600px;
height:600px;
z-index:3;
}
/* Used to control height of scrollable div*/
p.ex
{
height:600px;
width:100px;
}
/* Vertical and horizontal scrollbar - one extra step required - add width of overview - overall width of scrolled content*/
#All-Releases- {
width: 500px;
}
#Release-Monsters {
position:static;
width:600px;
height:322px;
z-index:3;
}
#Artwork-Monsters {
position:absolute;
left:19px;
top:2px;
width:284px;
height:284px;
z-index:3;
}
#Release-Title-Monsters {
position:absolute;
left:322px;
top:0px;
width:284px;
height:284px;
color: #CCC;
font-size: 18px;
font-family: Century Gothic, Geneva, sans-serif;
letter-spacing: 2px;
text-align: justify;
z-index:3;
}
#Release-Info-Monsters {
position:absolute;
left:322px;
top:25px;
width:278px;
height:284px;
color: #CCC;
font-size: 12px;
font-family: Century Gothic, Geneva, sans-serif;
letter-spacing: 1px;
text-align: justify;
z-index:3;
}
#Release-Insides {
display:block;
width:600px;
height:322px;
z-index:3;
}
#Artwork-Insides {
position:absolute;
left:19px;
top:2px;
width:284px;
height:284px;
z-index:3;
}
#Release-Title-Insides {
position:absolute;
left:322px;
top:0px;
width:284px;
height:284px;
color: #CCC;
font-size: 18px;
font-family: Century Gothic, Geneva, sans-serif;
letter-spacing: 2px;
text-align: justify;
z-index:3;
}
#Release-Info-Insides {
position:absolute;
left:322px;
top:25px;
width:278px;
height:284px;
color: #CCC;
font-size: 12px;
font-family: Century Gothic, Geneva, sans-serif;
letter-spacing: 1px;
text-align: justify;
z-index:3;
}
and the HTML is this:
<div id="All-Releases-" class="default-skin demo">
<div id="Release-Monsters">
<div id="Artwork-Monsters"><img src="images/Release-Artwork/Monsters.jpg" width="284" height="284" /></div>
<div id="Release-Title-Monsters">MONSTERS</div>
<div id="Release-Info-Monsters">
1. Prologue<br />
2. Journey <br />
3. Candles <br />
4. Water <br />
5. Underwater <br />
6. Spores <br />
7. Campfire <br />
8. Dawn <br />
9. Attack <br />
10. Temple <br />
11. Encounter <br />
12. Monsters Theme
</div></div>
<div id="Release-Insides">
<div id="Artwork-Insides"><img src="images/Release-Artwork/Insides.jpg" width="284" height="284" /></div>
<div id="Release-Title-Monsters">INSIDES</div>
<div id="Release-Info-Insides">
1. The Wider Sun <br />
2. Vessel <br />
3. Insides <br />
4. Wire <br />
5. Colour Eye <br />
6. Light Through The Veins <br />
7. The Low Places <br />
8. Small Memory <br />
9. A Drifting Up <br />
10. Autumn Hill<br />
</div></div>
<p class="ex"></p>
</div>
<div id="All-Releases-" class="default-skin demo">
<div id="Release-Monsters">
<div id="Artwork-Monsters"><img src="images/Release-Artwork/Monsters.jpg" width="284" height="284" /></div>
<div id="Release-Title-Monsters">MONSTERS</div>
<div id="Release-Info-Monsters">
1. Prologue<br />
2. Journey <br />
3. Candles <br />
4. Water <br />
5. Underwater <br />
6. Spores <br />
7. Campfire <br />
8. Dawn <br />
9. Attack <br />
10. Temple <br />
11. Encounter <br />
12. Monsters Theme
</div></div>
<div id="Release-Insides">
<div id="Artwork-Insides"><img src="images/Release-Artwork/Insides.jpg" width="284" height="284" /></div>
<div id="Release-Title-Monsters">INSIDES</div>
<div id="Release-Info-Insides">
1. The Wider Sun <br />
2. Vessel <br />
3. Insides <br />
4. Wire <br />
5. Colour Eye <br />
6. Light Through The Veins <br />
7. The Low Places <br />
8. Small Memory <br />
9. A Drifting Up <br />
10. Autumn Hill<br />
</div></div>
<p class="ex"></p>
</div>
<script type="text/javascript">
$(window).load(function () {
$(".demo").customScrollbar();
});
</script
>

I looked over your HTML (not too bad except for list and <br>) and your CSS (overly complicated).
I cleaned things up a bit, you see the results at:
http://jsfiddle.net/audetwebdesign/42bgv/
Major CSS Fixes
Here is the CSS that I modified:
.All-Releases {
position: relative;
left: 20px;
top: 0px;
width:600px;
height: auto;
color: #CCC;
font-size: 12px;
font-family: Century Gothic, Geneva, sans-serif;
outline: 2px dotted blue;
}
.Release-Monsters {
position: relative;
width:600px;
height:322px;
outline: 2px dotted gray;
}
...
.Release-Insides {
position: relative;
width:600px;
height:322px;
outline: 2px dotted gray;
}
...
Originally, you declared absolute position for .All-Releases which caused all the panels to overlap each other, not good.
For Release-Monsters and Release-Insides, use position: relative so that the absolutely positioned elements stay where you expect. (Note: there are simpler ways to do this without using absolute positioning).
Finally, use class instead of id since id values are suppose to be unique.
Also, take advantage of CSS cascade and keep the font and color declarations in the top level rule, .All-Releases in this example.

Add a float property to each of the **s. For example:
#Artwork-Monsters {
position:absolute;
float:left;
left:19px;
top:2px;
width:284px;
height:284px;
z-index:3;
}

I would change your html to have unordered lists to start with to get rid of all the br tags that you have and may be able to get it a little neater.
JSFiddle
Example: http://jsfiddle.net/uk3BW/ <-- Doesn't have scroll bar
Example: http://jsfiddle.net/uk3BW/1/ <-- Has scroll bar
HTML
<ul id="Release-Info-Monsters">
<li> Prologue </li>
<li> Journey </li>
<li> Candles </li>
<li> Water </li>
<li> Underwater </li>
<li> Spores </li>
<li> Campfire </li>
<li> Dawn </li>
<li> Attack </li>
<li> Temple </li>
<li> Encounter </li>
<li> Monsters Theme </li>
</ul>
CSS
ul {
display:block;
background:#aeaeae;
padding:10px;
width: 250px;
list-style:none;
}
li {
display:block;
background:#eee;
padding: 10px 0;
width: 100%;
text-align:center;
}
li:last-child {
margin: 0;
}
li {
margin: 0 0 10px 0;}
li:hover {
background:#ccc;
}

Related

CSS absolute position not being put in the correct location

I'm attempting to produce mailing list labels from a database connected to a website (yes, I could grab the list in some text format and import to something like Word... but ultimately I'm not going to be preparing the mailing so I want as few steps as possible in the process!). I've managed to get it working except for one part: the labels are not positioned correctly vertically.
I've looked at a number of questions on SO over the last few hours but none of the questions (or solutions) quite match what I've got.
I've defined 3 different paragraph classes for the 3 labels across the page (there's wierd gaps in the labels we've got for printing), with dimensions based on the label positions and size. Each label is a single paragraph with one of the 3 classes, and banks of labels sit inside a div representing the pages (these take into account the top and bottom margins of the pages).
Horizontally, it's working fine; vertically is another matter. Firebug is showing the paragraphs overlapping. I'm stumped as to what's going on.
Here's the CSS:
body
{
color: Black;
background-color: White;
font-family: "Times New Roman", Times, serif;
height: 100%;
margin: 0;
padding: 0;
font-size: 11pt;
}
p.print_label_left, p.print_label_right, p.print_label_middle
{
background: white;
position: absolute;
width: 5.4cm;
height: 1.43cm;
max-height: 1.43cm;
min-height: 1.43cm;
margin-left: 0.5cm;
margin-top: 1.48cm;
margin-right: 0.5cm;
margin-bottom: 0.5cm;
padding: 0.5cm;
top: 0;
border: none;
outline: solid 1px black;
}
p.print_label_left
{
left: 0.65cm;
}
p.print_label_middle
{
left: 7.3cm;
}
p.print_label_right
{
left: 13.95cm;
}
div.print_page
{
background: white;
position: relative;
padding: 0;
margin: 0;
left: 0;
top: 0;
width: 21cm;
height: 29.7cm;
border: none;
}
And here's a representative HTML sample (I can't give the real stuff due to privacy):
<body>
<div class="print_page" style="top:-1.33333333333cm;">
<p class="print_label_left" style="top:0cm;">A<br />
B<br />
C<br />
<br />
<br />
<br />
</p>
<p class="print_label_middle" style="top:0cm;">D<br />
E<br />
F<br />
<br />
<br />
<br />
</p>
<p class="print_label_right" style="top:0cm;">G<br />
H<br />
I<br />
<br />
<br />
<br />
</p>
<p class="print_label_left" style="top:2.43cm;">J<br />
K<br />
L<br />
<br />
<br />
<br />
</p>
<p class="print_label_middle" style="top:2.43cm;">M<br />
N<br />
O<br />
<br />
<br />
<br />
</p>
<p class="print_label_right" style="top:2.43cm;">P<br />
Q<br />
R<br />
<br />
<br />
<br />
</p>
</div>
</body>
The header defines a doctype (xhtml transitional 1.0) and I've played around with the max-height and min-height and putting extra lines in each paragraph to try to force it to have sufficient content to fill out the text, but no such luck.
When I print out the list, the outlines indicate the boxes are spaced at 2cm intervals not the required 2.43cm. And I'm fresh out of ideas of things to search for!
If it helps, I'm using Firefox 36 on a Windows 7 x64 machine but the server I'm running this on is a typical LAMP setup.
It's should work if i understand your question?
body
{
color: Black;
background-color: White;
font-family: "Times New Roman", Times, serif;
height: 100%;
margin: 0;
padding: 0;
font-size: 11pt;
}
p.print_label_left, p.print_label_right, p.print_label_middle
{
background: white;
width: 300px;
height: 100px;
margin-top: 10px;
padding: 0.5px;
top: 10px;
border: none;
outline: solid 1px black;
}
p.print_label_left
{
margin-left: 10px;
}
p.print_label_middle
{
margin-left: 150px;
}
p.print_label_right
{
margin-left: 300px;
}
div.print_page
{
background: white;
padding: 0;
margin: 5px;
left: 0;
top: 0;
width: 500px;
height: 100px;
border: none;
outline: solid 5px Red;
}
<div class="print_page">
<p class="print_label_left">A<br />
B<br />
C<br />
</p>
<p class="print_label_middle">D<br />
E<br />
F<br />
</p>
<p class="print_label_right">G<br />
H<br />
I<br />
</p>
<p class="print_label_left">J<br />
K<br />
L<br />
</p>
<p class="print_label_middle">M<br />
N<br />
O<br />
</p>

Sidebar links unclickable, unselectable

I'm pretty comfortable with basic html/css, but I've been really tripped up by a problem in a tumblr theme I'm working on. The text in my sidebar can't be selected, and the links do not work. I've read about people having problems where they put a div inside of a span tag, or because of a position:absolute, but I don't think that either of those are the issue. You can view the very unfinished site here.
Edit: including the relevant code
<header id="masthead">
<div id="header">
{block:IfMastheadPortrait}
<img src="{PortraitURL-128}"/>
{/block:IfMastheadPortrait}
<div id="big">{Title}</div>
<div id="goto">About //
Contact</div>
{block:Description}
<p>{Description}</p>
{block:Description}
</div>
<!--Navigation-->
<nav>
<div id="linx">
<span style="background-color: #007A5E">Design</span>
<br />
<span style="background-color: #007A5E">Drawing & Painting</span>
<br />
<span style="background-color: #007A5E"> Photography</span>
<br />
<span style="background-color: #007A5E">Mixed Media</span>
</div>
<br />
</nav>
</header>
And the CSS
#big {
color: {color:Masthead links};
font-size: 40px;
font-family: 'Codystar', sans-serif;
text-align: center;
}
#masthead {
background: {color:Masthead background} url('{image:Masthead}');
opacity: 0.7;
padding: 2%;
color: {color:Masthead text};
font-size:10.5px;
width: 180px;
height: 100%;
position: fixed;
float:left;
xmargin: {text:Post margin};
}
#masthead a {
color: {color:Masthead links};
}
nav li {
display: inline;
}
#linx {
text-align:center;
font-size:15px;
line-height:1.5;
font-family: {font:body} ;
color: #007A5E;
}
#linx a {
color:#000;
}
#goto {
text-align:center;
line-height:3;
}
#goto a {
color:#00A37D;
}
Give the sidebar a z-index so it sits on top of #content:
#masthead {
z-index: 1;
}
Just a heads up, xmargin isn't a thing. :D

Why background-color doesn't work?

I am trying to set background-color for my footer, but it doesn't really change the background color.
This is what I have done so far.
In my code: I have wrapped the footer by body tag. That means the footer is inside the body tag.
.HTML:
<footer>
<div id="footer_box">
<p id="footer_text_left">
© 7 seas<br />
En del av 7seas Money Transfer KB<br />
F-skatt registrerat <br />
Org, Nr: <br />
SEB Företagskonto: <br />
BG:
</p>
<p id="footer_text_middle">
Besökadress:<br />
218 41 Bunkeflostrand<br />
Malmö, Sweden <br />
Web:
</p>
<p id="footer_text_right">
Tel: <br />
Mob: <br />
e-Mail:
</p>
</div>
</footer>
.CSS:
#footer_box{
border-top:2px solid #009933;
background-color:green;
}
#footer_text_middle, #footer_text_right{
font-size:12px;
font-family:Euphemia;
float: left;
width: 28%;
margin: 0 1%;
padding-bottom:15px;
}
#footer_text_left{
font-size:12px;
font-family:Euphemia;
float: left;
width: 31%;
margin-left: 120px;
padding-bottom:15px;
}
Add overflow: auto in your css:
#footer_box{
overflow: auto;
border-top:2px solid #009933;
background-color:green;
}
Here's a Fiddle.
You need to use a clearfix class on your footer_box element:
<div id="footer_box" class="clearfix">
And add this in css:
.clearfix:after {
content: " ";
display: block;
clear: both;
visibility: hidden;
height: 0;
}
Now it should work.
Just add the green color background to the #footer_text_left, #footer_text_middle, and #footer_text_right <p> tags.
#footer_box, #footer_text_left, #footer_text_middle, #footer_text_right{
border-top:2px solid #009933;
background-color:green;
}
#footer_text_middle, #footer_text_right{
font-size:12px;
font-family:Euphemia;
float: left;
width: 28%;
margin: 0 1%;
padding-bottom:15px;
}
#footer_text_left{
font-size:12px;
font-family:Euphemia;
float: left;
width: 31%;
margin-left: 120px;
padding-bottom:15px;
}
<div id="footer_box">
<p id="footer_text_left">
© 7 seas<br />
En del av 7seas Money Transfer KB<br />
F-skatt registrerat <br />
Org, Nr: <br />
SEB Företagskonto: <br />
BG:
</p>
<p id="footer_text_middle">
Besökadress:<br />
218 41 Bunkeflostrand<br />
Malmö, Sweden <br />
Web:
</p>
<p id="footer_text_right">
Tel: <br />
Mob: <br />
e-Mail:
</p>
</div>
Adding: overflow:auto; should do the trick
Not Related to your question, the use of <br/> is a bit frowned upon. it would be better if EACH sentence is stored into a <p> and given a class with a margin-bottom for example.
Just a thought though

How to increase-decrease the number (i.e. 0, 1,4..) size in CSS?

In my website, a paragrap (which sits inside the header)is made up of number (i.e. telephone number) and some text (i.e. email adderss). Now I have enclosed then in one same paragraph, set their font-size: small. But the problem is in my browser, the number looks a few size bigger than the text (which is email address in my case). Why so? How can I make them look as same size as the text(may be decreasing the size of number?)? This is how it looks like right now:
.HTML:
<div id="header_area">
<h1>
7seas Redovisning
<p id="contact_address_header">
Mob: 076-000000<br /> Tel: 000000<br />
info#7abcdefgh.se
</p>
</h1>
</div>
.CSS:
#header_area{
background-image: url('img_ain/7seas.jpeg'),
url('img_ain/7seas.jpeg');
background-repeat: no-repeat,
no-repeat;
background-position: 220px top;
margin-top:10px;
}
h1{
text-align:center;
/*
margin-top:55px;
*/
color:green;
border-bottom:2px solid Crimson ;
box-shadow: 2px 2px 2px yellow;
padding-bottom:40px;
padding-top:45px;
font-family:Prisoner SF;
}
#contact_address_header{
float:right;
margin-right:40px;
margin-top:-15px;
color:#6495ED;
font-size: small;
font-family:Euphemia;
}
Actually the font-size is the same for both the numbers and the alphabets but if you'd still like to reduce the font-size of the numbers, you can wrap your numbers with a <span></span> tag like this:
<h1>
7seas Redovisning
<p id="contact_address_header">
Mob: <span class="numbers">076-000000</span><br /> Tel: <span class="numbers">000000</span><br />
info#7abcdefgh.se
</p>
</h1>
And then set a different font-size for the span tag like this:
#contact_address_header{
font-size: small;
}
.numbers {
font-size: 10px;
}
By the way, I don't know your requirements but using the <p> tag inside the <h1> tag isn't valid HTML.
#contact_address_header {
font-size: small;
}
.numbers {
font-size: 10px;
}
<h1>
7seas Redovisning
<p id="contact_address_header">
Mob: <span class="numbers">076-000000</span><br /> Tel: <span class="numbers">000000</span><br /> info#7abcdefgh.se
</p>
</h1>

how to use CSS positioning in 100% width layout

I've looked through other answers on this site but am not able to find exactly what I need. I'm building a site which uses width as percentages on divs and tables. I figured this would help me keep the layout of the site static no matter what screen resolution the viewer is using. However, I notice that when I resize my window, 2 things are happening that I don't want:
1) The text elements are jumping to new lines and throwing off the whole layout. I'd really like to keep it from doing that but not sure if that goes against using the percentage thing.
2) I've used absolute positioning on some elements because they didn't really work in a table format (specifically the skills and languages portion on the right hand side--see screenshot below). But if I resize the window, they don't stay with everything else.. they just stay in one place. And I know that's what they're supposed to do but I'm just wondering if there's a way to get it to stay with everything else when resized and still be absolute (or fixed? static?).
The reason why I'm using percentages for width is because I want my site to fill the screen based on the resolution but also keep all content centered in the middle of that screen. If I resize the window, everything gets screwed up and even a nav bar which is floated to the right ends up on the other side of the screen over my logo. It's incredibly frustrating.
I don't know what the answer is but here's a screenshot of how the page looks on my browser (i.e. how it's supposed to look) and my code (below). I'd really appreciate any insight people can give me into how I should better design this site. I can't seem to do everything I want it to do and I know it's probably way simpler than I'm making it. Please let me know what you think. Thanks!
Pooja
<!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" />
<title>Pooja's Designs :: Resume</title>
<style type="text/css">
body#home {
text-align:center;
margin:0px;
padding:0px;
width:100%;
height:100%;
font-family:Open Sans;
}
body#home a#nav-home,
body#resume a#nav-resume,
body#portfolio a#nav-portfolio,
body#contact a#nav-contact
{
color: #dfadec;
text-decoration:none;
}
#container {
background-color:#eae5e5;
width:100%;
text-align:left;
margin: 0 auto;
height:auto;
}
#main {
padding-top:40px !important;
padding-bottom:35px !important;
width:50%;
margin: 0 auto;
color:#4d4d4f;
}
#header {
border-top:solid 15px #4d4d4f;
font-size:30px;
color:#4d4d4f;
background-color:#FFF;
width:100%;
padding-bottom:45px;
}
#title {
padding-top:30px;
}
#footer {
color:#FFF;
font-size:12px;
background-color:#dfadec;
width:100%;
padding-bottom:45px;
padding-top:45px;
margin: 0 auto;
height: 100%;
border-top:solid white 3px;
}
#nav {
font-size:12px;
color:#CCC;
float:right;
margin-top:-18px;
}
#nav a:link {
color:#CCC;
text-decoration:none;
}
#nav a:hover {
color:#dfadec;
text-decoration:none;
}
#nav a:visited {
color:#CCC;
text-decoration:none;
}
h1 {
font-size:60px;
color:#4d4d4f;
margin-top:-150px;
}
h2 {
font-size:40px;
color:#4d4d4f;
font-weight:normal;
margin-top:-40px;
}
#resume-title {
color:#FFF;
letter-spacing:5px;
font-size:70px;
}
img#icon {
background-color:#4d4d4f;
padding:12px;
}
#prof_info {
width:115px;
height:115px;
background-color:#dfadec;
margin-top:30px;
}
#prof_info p {
color:#FFF;
font-size:16px;
padding-left:10px;
letter-spacing:0px;
vertical-align:middle;
padding-top:37px;
font-weight:600;
}
#work_exp {
width:115px;
height:115px;
background-color:#dfadec;
margin-top:30px;
}
#work_exp p {
color:#FFF;
font-size:16px;
padding-left:10px;
letter-spacing:0px;
vertical-align:middle;
padding-top:37px;
font-weight:600;
}
#education {
width:115px;
height:115px;
background-color:#dfadec;
margin-top:30px;
}
#education p {
color:#FFF;
font-size:16px;
padding-left:10px;
letter-spacing:0px;
vertical-align:middle;
padding-top:47px;
font-weight:600;
}
#contact {
width:45%;
margin: 0 auto;
}
#title-nav {
width:50%;
margin: 0 auto;
}
.position {
font-size:14px;
font-weight:600;
}
ul {
margin:0;
padding:0;
padding-left:20px;
}
ul li {
color:#dfadec;
}
</style>
</head>
<body id="home">
<div id="container">
<div id="header">
<div id="title-nav">
<div id="title">
<strong>Pooja's Designs</strong><br />
<span style="font-size:16px; color:#dfadec;">Web Development / Design</span>
</div>
<div id="nav">
<strong><a href="http://www.poojasdesigns.com/" id="nav-
home">HOME</a> | <a href="http://www.poojasdesigns.com/resume"
id="nav-resume">RESUME</a> | <a
href="http://www.poojasdesigns.com/portfolio" id="nav-
portfolio">PORTFOLIO</a> | CONTACT</strong>
</div>
</div>
</div>
<div id="main">
<div id="resume-title">
RESUME
</div>
<div style="border-bottom:solid #999 1px; width:72%; height:5px;"> </div>
<div style="position: absolute; left: 1040px; top: 273px;">
<img id="icon" src="exclamation.png" style="padding-left:17px; padding-right:17px;
padding-top:10px; padding-bottom:8px; background-color:#dfadec; vertical-align:middle;
margin-bottom:5px;" /><br />
Skills
<div style="border-bottom:solid #999 1px; width:200px; height:5px; margin
-bottom:15px;"> </div>
<span style="font-size:12px;">DREAMWEAVER<br />
PHOTOSHOP<br />
ILLUSTRATOR<br />
FLASH<br />
INDESIGN</span>
</div>
<div style="position: absolute; left: 1038px; top: 477px;">
<img id="icon" src="globe.png" style="padding:6px; padding-left:5px; background-
color:#dfadec; vertical-align:middle; margin-bottom:5px;" /><br />
Languages
<div style="border-bottom:solid #999 1px; width:200px; height:5px; margin-
bottom:15px;"> </div>
<span style="font-size:12px;">HTML<br />
CSS<br />
JAVASCRIPT<br />
JQUERY<br />
PHP</span>
</div>
<table width="70%">
<tr>
<td>
<div id="prof_info">
<p>Professional<br />
info</p>
</div>
</td>
<td style="padding-left:20px; font-size:12px; text-align:justify; line-height:18px;"
valign="bottom">
My objective is to secure the position of Web Developer/Designer in an established
organization which will enable me to use my talents, creativity and ability to the
maximum, and contribute to the growth of the organization, as well as myself. I am
fluent in English and Hindi, with some basic knowledge of Spanish.
</td>
</tr>
</table>
<div style="border-bottom:solid #999 1px; width:72%; height:5px; padding-
top:30px;"> </div>
<table width="70%">
<tr>
<td valign="top">
<div id="work_exp">
<p>Work<br />
experience</p>
</div>
</td>
<td style="padding-left:20px; padding-top:60px; font-size:12px; text-align:justify;
line-height:18px;">
<span class="position">Web Producer | Random House, Inc<br />
2011 - present</span><br /><br />
<ul>
<li><span style="color:#4d4d4f;">Create and manage content on the AtRandom website, as
well as author and imprint websites</span></li>
<li><span style="color:#4d4d4f;">Compile, code, and send out email newsletters (web and
mobile-responsive) using Emailvision, ExactTarget, and MailChimp</span></li>
<li><span style="color:#4d4d4f;">Manage email distribution lists (importing and
exporting subscribers)</span></li>
<li><span style="color:#4d4d4f;">Carry out website-related requests for colleagues, such
as uploading graphics to the live server and making changes to websites as
needed</span></li>
<li><span style="color:#4d4d4f;">Pull reports from Google Analytics and Omniture Site
Catalyst for newsletters and websites</span></li>
<li><span style="color:#4d4d4f;">Create and edit PDF documents of book excerpts to be
uploaded on Scribd</span></li>
<li><span style="color:#4d4d4f;">Upload book trailers to YouTube</span></li>
<li><span style="color:#4d4d4f;">Create giveaways on LibraryThing</span></li>
<li><span style="color:#4d4d4f;">Compile Google forms for giveaways and
contests</span></li>
</ul>
</td>
</tr>
</table>
<div style="border-bottom:solid #999 1px; width:72%; height:5px; padding-
top:30px;"> </div>
<table width="56%">
<tr>
<td valign="top">
<div id="education">
<p>Education</p>
</div>
</td>
<td style="padding-top:60px; font-size:12px; text-align:justify; line-height:18px;">
<span class="position">American Sentinel University<br />
2008 - 2010</span><br /><br />
Bachelor of Science, Web Design & Development<br /><br />
<span class="position">University of Kentucky<br />
2005 - 2007</span><br /><br />
General Studies
</td>
</tr>
</table>
</div>
<div id="footer">
<div id="contact">
<table width="100%" style="padding-left:10px;">
<tr>
<td>
<img id="icon" src="mail-icon.png" />
</td>
<td>
<strong>Contact</strong><br />
myemail at gmail dot com
</td>
<td>
<img id="icon" src="add-icon.png" />
</td>
<td style="padding-right:25px;">
<strong>Follow me</strong><br />
<a href="" target="_blank"><img
src="Pace_Social_Icon_Set/PNG/facebook.png" width="25" border="0" style="margin-left:-
8px;" /></a><a href="" target="_blank"><img
src="Pace_Social_Icon_Set/PNG/twitter.png" width="25" border="0" /></a><a
href="" target="_blank"><img
src="Pace_Social_Icon_Set/PNG/linkedin.png" width="30" border="0" /></a>
</td>
<td>
<img id="icon" src="call-icon.png" style="padding:8px; padding-left:12px; padding-
right:12px;" />
</td>
<td>
<strong>Call</strong><br />
C: 123.456.7890
</td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>
A key concept for building responsive layouts is Absolute Positioning Inside Relative Positioning. Chris Coyier has a great article here: http://css-tricks.com/absolute-positioning-inside-relative-positioning/. This concept allows you to position items absolutely inside a relatively position element.
I've applied this concept to your code so you can start to get the idea of what I'm talking about. However, with all the tables and inline styles, your markup still needs some major refactoring. See here: http://jsfiddle.net/meub/4pcx5/4/
Some key code in the fiddle:
#main {
padding-top:40px !important;
padding-bottom:35px !important;
width: 830px;
margin: 0 auto;
color:#4d4d4f;
/* Important! Lets you position elements absolutely INSIDE this div */
position: relative;
}
Some other important lessons to make your life easier in the future:
Don't use inline styles
Don't use tables for layout
Indent your code so it's easier to read (this is a good tool for messy code)
To leave everything in the center you need the body to be something like this:
body{
padding: 0 0 0 0;
border:0;
margin:0 auto;
width:100%;
}
and then you need a wrapper div, let's say:
.wrapper{
text-align:center;
margin:0 auto;
width:900px; //modify this to the size you want
}
then put everything inside that wrapper div, everything will be in the center of that wrapper div