06-04-2010, 19:52
(Ten post był ostatnio modyfikowany: 06-04-2010, 20:31 przez Użyszkodnik.)
Witam.
Mam templatkę Interactive Media ze strony http://www.free-css.com/free-css-templates/page81/interactive-media.php. Składa się z pliku HTML, pliku CSS i obrazków. Chciałbym ja przerobić z dwu na trzykolumnową. Jednak nie bardzo wiem, jak się do tego zabrać.
CSS:
HTML:
Domyślam się, że w CSS powinienem dodać klasę (?) left, ale nie wiem, co dokładnie tam umieścić. Domyślam się również, że w html powinienem dodać <div id="right">
Mam templatkę Interactive Media ze strony http://www.free-css.com/free-css-templates/page81/interactive-media.php. Składa się z pliku HTML, pliku CSS i obrazków. Chciałbym ja przerobić z dwu na trzykolumnową. Jednak nie bardzo wiem, jak się do tego zabrać.
CSS:
Kod PHP:
/*
project: interactive media (free css template)
author: luka cvrk (www.solucija.com)
*/
* { margin:0; padding:0; }
body { font: 72.5%/1.7em "Lucida Grande", "Lucida Sans Unicode",
verdana, geneva, sans-serif; color:#555; background: #fff url(../images/headerbg.gif) repeat-x; }
/* general styling */
a { color:#007898; background: inherit; border-bottom:1px dotted
#ccc; text-decoration:none; }
a:hover { border-bottom:1px solid #ccc; color: #808080;
background: inherit; }
a:focus { outline: 0; }
ul { margin:10px 10px 10px 0; padding:0 0 0 15px; }
li { margin:0 0 0 10px; padding:3px; }
img { border: 0; text-decoration: none; }
/* content */
.wrap { padding:0 10px 10px 10px; width:860px;
margin:0 auto; }
#logo {float:left; margin: 26px 20px 14px 5px;
color:#768998; }
h1 { margin: 0 0 10px; letter-spacing: 1px;
font-size: 2em; }
h1 a { color: #fff; }
h1 a:hover { color: #FFFCB3; }
/* main navigation */
#nav { float:right; border:none; padding:0;
margin: 47px 10px 60px 0; }
#nav li { float:left; list-style:none; margin:0 4px 0 0; padding:0; font-size: 1.1em; }
#nav li a { display:block; padding: 10px 12px 15px; color:#768998; text-decoration:none; border: 0; margin:0 1px 0 0; }
#nav li a:hover, #nav li a.current { background: url(../images/barbg.gif) no-repeat bottom center; color:#fff; }
.akey { border-bottom: 1px dotted #4B5761; }
/* main content */
#left { float: left; width: 570px; margin: 0 0 20px 0; }
#left h2 { float: left; font: 2.1em "Trebuchet MS", Arial; background: url(../images/h2bg.gif) repeat-x bottom; color:#121212; letter-spacing:-1px; margin: 0px 0 20px 0; clear:left; }
#left h2 a { color:#121212; text-decoration:none; border: 0; }
#left p { clear: both; margin: 5px 0 20px 0; font-size:110%; line-height:21px; }
/* sidebar */
#right { width:230px; float:right; margin: 0 0 20px 0; }
#right h2 { color:#fff; margin: 0 0 5px 0; font: bold 1.2em "Trebuchet MS", Arial; background: #fff url(../images/sideh2bg.gif) repeat-x; padding: 4px 10px; border-bottom: 2px solid #000; }
#right ul { list-style:none; border-top:1px solid #eee; border:none; padding:0; margin:0 0 15px 0; }
#right ul li { border-bottom:1px solid #eee; padding:5px; margin:0; }
#right ul li a { border: 0; }
#tagcloud { margin: 0 0 20px; }
#tagcloud a { margin: 0 5px 0 0; color: #25771F; }
#tagcloud a:hover { background: #E7FEE5; color: #007898; }
#info { border: 1px solid #ccc; padding: 3px 5px; margin: 0 0 10px; }
#footer { clear: both; border-top: 1px solid #ccc; padding: 20px 0; color:#808080; }
#footer p { line-height: 2.5em; }
div.related_posts {
margin: 5px 0;
}
ul.related_posts {
margin: 0;
padding: 0;
list-style: none;
}
ul.related_posts li{
padding-left:16px;
margin-bottom:.2em;
background-image:url('../images/related.png');
background-repeat:no-repeat;
background-position:0 .2em;
}
HTML:
Kod PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="author" content="Luka Cvrk (solucija.com)" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/main.css" type="text/css" media="screen, projection" />
<title>INTERACTIVE MEDIA · using media to broadcast content</title>
</head>
<body id="home">
<div class="wrap">
<div id="logo">
<h1><a href="." title="Home">INTERACTIVE MEDIA</a></h1>
<p>using media to broadcast content</p>
</div>
<ul id="nav">
<li><a class="current" href="." accesskey="h"><span class="akey">H</span>ome</a></li>
<li><a href="#" accesskey="a"><span class="akey">A</span>bout</a></li>
<li><a href="#" accesskey="m"><span class="akey">M</span>edia</a></li>
<li><a href="#" accesskey="r"><span class="akey">R</span>eferences</a></li>
<li><a href="#" accesskey="c"><span class="akey">C</span>onsulting</a></li>
<li><a href="#" accesskey="t">Con<span class="akey">t</span>act</a></li>
</ul>
</div>
<div class="wrap">
<div id="left">
<h2>Welcome to my new blog!</h2>
<p>Suspendisse egestas fringilla odio. Donec lacinia tristique ante. </p>
</div>
<div id="right">
<h2>Latest Entries</h2>
<ul>
<li><a href="#">Aenean justo nisl, luctus sit amet</a></li>
<li><a href="#">Ut pretium mauris nec arcu</a></li>
<li><a href="#">Praesent accumsan metus vel</a></li>
<li><a href="#">Cum sociis natoque et magnis</a></li>
<li><a href="#">Maecenas mattis ipsum a felis</a></li>
<li><a href="#">Praesent accumsan metus vel</a></li>
<li><a href="#">Ut pretium mauris nec arcu</a></li>
</ul>
<div id="tagcloud">
<p>
<span style="font-size: 1.3em"><a href="#">google</a></span>
<span style="font-size: 1.1em"><a href="http://www.solucija.com">solucija</a></span>
<span style="font-size: 1.6em"><a href="http://www.snewscms.com">snews</a></span>
<span style="font-size: 1.5em"><a href="#">css</a></span>
<span style="font-size: 1em"><a href="#">templates</a></span>
<span style="font-size: .9em"><a href="#">apple</a></span>
<span style="font-size: 1.6em"><a href="#">web 2.0</a></span>
<span style="font-size: 1.4em"><a href="#">social</a></span>
<span style="font-size: 1.5em"><a href="#">facebook</a></span>
<span style="font-size: 1.7em"><a href="http://www.layoutica.com">layoutica</a></span>
</p>
</div>
<p id="info">If you liked this template, you might like some other CSS templates from <a href="http://www.solucija.com" title="Information Architecture and Web Design">Solucija</a>!</p>
</div>
<div id="footer">
<p><strong>Blog:</strong> <a href=".">Home</a> · <a href="#">About</a> · <a href="#">Media</a> · <a href="#">References</a> · <a href="#">Consulting</a> · <a href="#">Contact</a></p>
<p><strong>Network:</strong> <a href="#">Network site #1</a> · <a href="#">Network site #2</a> · <a href="#">Network site #3</a> · <a href="#">Network site #4</a></p>
<p>Design: Luka Cvrk, <a title="Awsome Web Templates" href="http://www.solucija.com/">Solucija</a></p>
</div>
</div>
</body>
</html>
Domyślam się, że w CSS powinienem dodać klasę (?) left, ale nie wiem, co dokładnie tam umieścić. Domyślam się również, że w html powinienem dodać <div id="right">