So I have three pictures listed in a unorderd list in a div called #social and when I apply padding-left:1px to these, nothing happens.
<!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>Untitled Document</title>
<link href="css/styles.css"rel="stylesheet" type="text/css">
</head>
<body>
<div id="outer">
<div id="header">
<img id="banner" src="images/Logo.png" width="780" height="137" />
<div id="arbeten">
<div class="bilder"><br />
<p class="text">Detta här är mitt portfolio på de hemsidor jag gjort till olika företag och privatpersoner. </p><br />
<p class="text">Är du intresserad av att få din hemsida gjord? Gå längst ner för att kontakta mig.</p><br />
<p class="text"><span class="sne">"Everything is designed. Few things are designed well."</span> </p>
</div>
<img class="bilder" src="images/Test1.jpg" width="220" height="180" />
<img class="bilder" src="images/Test2.jpg" width="220" height="180" />
<br />
<img class="bilder" src="images/Test3.jpg" width="220" height="180" />
<img class="bilder" src="images/Test4.jpg" width="220" height="180" />
<img class="bilder" src="images/Test5.jpg" width="220" height="180" />
<img class="bildersist" src="images/Test6.jpg" width="220" height="180" />
<img class="bildersist" src="images/Test7.jpg" width="220" height="180" />
<img class="bildersist" src="images/Test8.jpg" width="220" height="180" />
</div>
</div>
</div>
<div id="footer">
<div id="ifooter">
<div id="e">
<div id="social">
<ul>
<li><img src="images/facebook_32.png" width="32" height="32" /></li>
<li><img src="images/twitter_32.png" width="32" height="32" /></li>
<li><img src="images/youtube_32.png" width="32" height="32" /></li>
</ul>
</div>
</div>
<div id="t">
</div>
<div id="b">
</div>
</div>
</div>
</body>
</html>
CSS:
* {/* for demo only*/
margin:0;
padding:0
}
html, body {
height:100%;/* needed to base 100% height on something known*/
text-align:center;
}
#outer {
width:780px;
background:#FFF;
margin:auto;
height:900px;
min-height:100%;
margin-top:-40px;/*footer height - this drags the outer 40px up through the top of the monitor */
text-align:left;
}
.text {font-family:Arial, Helvetica, sans-serif; font-size:11px; }
.sne { font-style:italic; }
#arbeten {height:auto; width:780px; margin-top:50px; }
.bilder {float:left; padding-left:30px; margin-bottom:25px; height:180px; width:220px; }
.bildersist {float:left; padding-left:30px; }
#social {
width:260px;
height:50px
}
#social ul li {display:inline; padding:1px;}
#banner {margin-top:30px; }
#ifooter {
margin-left:auto;
margin-right:auto;
height:300px;
width:780px;
}
#e {
height:300px;
width:260px;
float:left
}
#t {
height:300px;
width:260px;
float:left;
}
#b {
height:300px;
width:260px;
float:left
}
#header {
background:;
border-top:40px solid #fff; /* soak up negative margin and allows header to start at top of page*/
}
#footer {/* footer now sits at bottom of window*/
background:#E6E6E6;
margin:auto;
height:300px;/* must match negative margin of #outer */
clear:both;
}
/*Opera Fix*/
body:before {/* thanks to Maleika (Kohoutec)*/
content:"";
height:100%;
float:left;
width:0;
margin-top:-32767px;/* thank you Erik J - negate effect of float*/
}
h1,h2,p{padding:0 10px;}
</style>
[if (lte IE 6)|(gte IE 8)]>
<style type="text/css">
#outer {height:100%;display:table;}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
Thanks.