I tried using float : left and display:inline-block. it doesnt work.
my html is
KoatSG
<nav><ul>
<li loop="$global_menu->list=>$key1,$val1" class="active"|cond="$val1['selected']"><a href="{$val1['href']}" target="_blank"|cond="$val1['open_window']=='Y'">{$val1['link']}</a>
<ul cond="$val1['list']">
<li loop="$val1['list']=>$key2,$val2" class="active"|cond="$val2['selected']"><a href="{$val2['href']}" target="_blank"|cond="$val2['open_window']=='Y'">{$val2['link']}</a></li>
</ul>
</li>
</ul></nav>
</header>
<div class="maincontent">
<div class="photos">
<img src="img/pic1.jpg">
<img src="img/pic2.jpg">
</div>
<div class="photoss">
<img src="img/pic3.jpg">
<img src="img/pic4.jpg">
</div>
<div class="content">{$content}</div>
</div>
<div class="topsidebar">
<a class="twitter-timeline" href="https://twitter.com/KOATSG" data-widget-id="670601134827024384">Tweets by @KOATSG</a>
<div class="photoslider">
<article>
<p>Photoslider</p>
</article>
</div>
</div>
<footer class="mainfooter">
<p>Copyrights by Koreaofalltrades Designed by <a href="https://studiokdesigner.wordpress.com/"> StudioK </a></p>
</footer>
css :
@charset “utf-8”;
/* CSS Document */
body{
color: #261A1A;
font-family:Arial, “Lucida Grande”, “Lucida Sans Unicode”, “Lucida Sans”, “DejaVu Sans”, Verdana, sans-serif;
text-align:left;
}
a {
text-decoration:none;
}
a:link, a:visisted {
}
a:hover, a:active{
}
.body{
margin: 0 auto;width:70%;clear:both;
}
.mainheader img{width:100%;height:auto;margin:2% 0
}
.mainheader nav{background-color: #666;height:40px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;
}
.mainheader nav ul{list-style:none;margin:0 auto;
}
.mainheader nav ul li{float:left;display:inline;
}
.mainheader nav a:link, .mainheader nav a:visited {color:#FFF;display:inline-block;padding: 10px 25px
}
.mainheader nav a:hover, .mainheader a:active,
.mainheader nav .active a:link, .mainheader nav .active a:visited {
background-color:#261A1A;
text-shadow:none;}
.mainheader nav ul li a{
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
.maincontent{
line-height: 25px;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
.photos{width:100%;display:inline-block;float:left;
}
.photoss{width:100%;display:inline;float:left;
}
.content {width: 70%;float:left;
}
a.twitter-timeline{width:21%;float:left;color:#261A1A;border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;margin-left:3%;margin-bottom:2%;padding: 2% 3%;
}
.topsidebar{width:21%;float:left;color:#261A1A;border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;margin-left:3%;margin-bottom:2%;padding: 2% 3%;
}
.mainfooter{width:100%;float:left;margin-top:2%;border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px
}
.mainfooter p{width:92%;margin: 2% auto;}
@media only screen and (min-width: 150px) and (max-width: 600px)
{
.body{
width:90%
}
.mainheader img{width:100%
}
.mainheader nav{height:40px
}
.mainheader nav ul{padding-left: 0
}
.mainheader nav ul li{width:100%;text-align:center;
}
.mainheader nav a:link, .mainheader nav a:visited {padding: 10px 25px;height:20px;display:block;
}
}