Text wrap image : img « Tags « HTML / CSS






Text wrap image

      
<!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>
<title>AUTUMN</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type='text/css'>
body {
  margin: 0;
  padding: 0;
  font: 75% "Trebuchet MS", tahoma, verdana, arial, sans-serif;
  background: #fff url(01-autumn-img/bg.jpg) center 0%;
  color: #666;
}

#container {
  width: 600px;
  margin-right: auto;
  margin-left: auto;
}

/*TITLE BAR*/
#title h1 {
  margin: 0;
  padding: 10px;
  font-size: 1.5em;
  color: #8c9e18;
  background: inherit;
}

/*TOP BANNER*/
#banner {
  width: 600px;
  height: 150px;
  margin-bottom: 10px;
  padding: 0;
  background: url(01-autumn-img/head.jpg);
}

/*CONTAINER*/
.container {
  width: 600px;
  margin: 0;
  padding: 0;
}

/*TOP NAVIGATION*/
#top-nav {
  margin: 0;
  padding: 0 0 20px 0;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

#top-nav li {
  height: 20px;
  margin: 0;
  padding: 0;
  display: inline;
  list-style-type: none;
}

#top-nav a:link,#top-nav a:visited {
  float: left;
  padding: 0 15px 15px 15px;
  text-decoration: none;
  letter-spacing: 1px;
  color: #666;
  background: inherit;
}

#top-nav a:link.active,#top-nav a:visited.active,#top-nav a:hover {
  background: inherit;
  color: #487500;
  background: url(01-autumn-img/top_menu.gif) no-repeat bottom center;
}

/*MAIN CONTENT*/
#content {
  float: left;
  width: 420px;
  margin: 0;
  padding: 0;
  line-height: 1.8em;
  border-right: 1px solid #eee;
}

#content p {
  margin: 10px;
}

/*TYPOGRAPHY*/
h1 {
  margin-top: 15px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.5em;
  color: #8c9e18;
  background: inherit;
}

blockquote {
  font-weight: bold;
  font-style: italic;
  color: #b29b35;
}

/*SIDEBAR*/
#side {
  width: 160px;
  margin: 0 0 0 435px;
  padding: 0;
}

#side h2 {
  font-size: 1em;
  color: #9c592c;
  background: inherit;
}

/*SIDE NAVIGATION*/
#side-nav {
  margin: 0;
  padding: 0;
  list-style-type: none;
  color: #333;
  background: inherit;
}

#side-nav a {
  line-height: 2em;
  background: inherit;
  display: block;
  text-decoration: none;
  background: url(01-autumn-img/side_menu.gif) no-repeat right 0%;
  color: #c86000;
}

#side-nav a#current,#side-nav a:hover {
  text-decoration: none;
  background: #fff url(01-autumn-img/top_menu.gif) no-repeat right 0%;
  color: #000;
}

/*FOOTER*/
#footer {
  clear: both;
  width: 600px;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
  font-size: 0.9em;
  color: #333;
  background: inherit;
}

#footer a:link,#footer a:visited {
  color: #c86000;
  background: inherit;
}

#footer a:hover {
  border-bottom: 1px dashed #eee;
  color: #8c9e18;
  background: inherit;
}

/*CLASSES*/
.more-links {
  padding: 10px;
  margin-left: 0;
  color: #666;
  background: #f7f7f7;
}

.more-links ul li {
  list-style-image: url(01-autumn-img/arrow.png);
  padding-left: 5px;
  margin-bottom: 10px;
}

.news {
  color: #666;
  background: inherit;
}

.myborder {
  border: 1px solid #eeae0e;
  padding: 10px;
}

/*SCROLLBAR*/
div.scroll {
  overflow: auto;
  margin: 0 0 20px 0;
  padding: 1em;
  height: 8em;
  border: 1px solid #eee;
  background: #fff;
  color: #866709;
}

/*LINKS*/
a img {
  border: none;
}

a:link,a:visited {
  text-decoration: none;
  color: #cc6600;
  background: inherit;
}

a:hover {
  text-decoration: none;
  color: #663300;
  background: inherit;
}
</style>


</head>
<body>
<div id="container">
  <div id="title">
    <h1>Your <span style="color:#C4DA64;">Company</span> Name</h1>
  </div>
  <div id="banner"></div>
  <div class="container">
    <ul id="top-nav">
      <li><a class="active" href="http://www.free-css.com/">Home</a></li>
      <li><a href="http://www.free-css.com/">About</a></li>
      <li><a href="http://www.free-css.com/">Products</a></li>
      <li><a href="http://www.free-css.com/">Services</a></li>
      <li><a href="http://www.free-css.com/">Support</a></li>
    </ul>
  </div>
  <div id="content">
    <h1>Welcome to <span style="font-weight:bold; color:#C4DA64;">Autumn</span> Template</h1>
    <blockquote>This template has been tested in Mozilla and IE6/7 and validates as XHTML 1.0 Transitional using valid CSS.<br />
      For more FREE templates visit my website.</blockquote>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur mi. Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat. This is a <a href="http://www.free-css.com/">LINK</a> to nowhere. Nunc libero libero, lobortis ut, placerat vel, dapibus eu, nisl. Fusce a nisi sed urna aliquet molestie. Aenean pretium, orci vitae lobortis rutrum, magna arcu pulvinar elit, id suscipit nunc tellus in felis. </p>
    <div style="float: right; width: 125px; height: 7em; margin: 15px; font-family: georgia, arial, helvetica; font-size: 16px; font-weight:normal; line-height: 22px; color: #cc9933; text-align: right;"><span style="color:#663300;">"...autumn is a second </span>spring when every <span style="color: #C86000;">leaf is a flower... "</span> </div>
    <p>Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat. Nunc libero libero, lobortis ut, placerat vel, dapibus eu, nisl. Fusce a nisi sed urna aliquet molestie. Aenean pretium, orci vitae lobortis rutrum, magna arcu pulvinar elit, id suscipit nunc tellus in felis.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur mi. Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat.</p>
    <h1>About</h1>
    <p><img class="myborder" align="left" hspace="10" src="01-autumn-img/square.gif" alt="image here" title="image here" /> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur mi. Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat. Nunc libero libero, lobortis ut, placerat vel, dapibus eu, nisl. Fusce a nisi sed urna aliquet molestie. Aenean pretium, orci vitae lobortis rutrum, magna arcu pulvinar elit, id suscipit nunc tellus in felis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur mi. Sed interdum. Nam facilisis dui a nisi. Phasellus euismod augue quis erat. Nunc libero libero, lobortis ut, placerat vel, dapibus eu, nisl. Fusce a nisi sed urna aliquet molestie. Aenean pretium, orci vitae lobortis rutrum, magna arcu pulvinar elit, id suscipit nunc tellus in felis.</p>
  </div>
  <div id="side">
    <h1>Links</h1>
    <div id="navcontainer">
      <ul id="side-nav">
        <li><a href="http://www.free-css.com/">Open Designs</a></li>
        <li><a href="http://www.free-css.com/">CSS Drive</a></li>
        <li><a href="http://www.free-css.com/">Style Gala</a></li>
        <li><a href="http://www.free-css.com/">Listamatic</a></li>
      </ul>
      <h1>News</h1>
      <div class="scroll">
        <h2>January 1st 2006</h2>
        <p class="news">HAPPY NEW YEAR. Use this space as a mini weblog maybe .....</p>
        <h2>Sept 25th 2005</h2>
        <p class="news">or maybe not!</p>
      </div>
    </div>
    <h1>More Links</h1>
    <div class="more-links">
      <ul>
        <li><a href="http://www.free-css.com/">OWD</a></li>
        <li><a href="http://www.free-css.com/">CSS Drive</a></li>
        <li><a href="http://www.free-css.com/">CSS Library</a></li>
      </ul>
    </div>
  </div>
  <div id="footer"> <a href="http://www.free-css.com/">homepage</a> | <a href="http://www.free-css.com/">contact</a> | <a href="http://validator.w3.org/check?uri=referer">html</a> | <a href="http://jigsaw.w3.org/css-validator">css</a> | &copy; 2007 Anyone | Design by <a href="http://www.mitchinson.net"> www.mitchinson.net</a><br/>
    This work is licensed under a <a rel="license" target="_blank" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 License</a> </div>
</div>
</body>
</html>

   
    
    
    
    
    
  








Related examples in the same category

1.Adding images and alt message with XHTML
2.Alternative Text Rendering
3.Set background to #fff for an image
4.Set padding to 4px
5.display block
6. in a
7.Set image margin top and left to negative value
8.Image block
9.image clear: left;
10.Switch image for link
11.Adding caption to Image
12.Image as a link
13.Creating an Image Map
14.Top link with image
15.Wrap text along with image
16.Using arrow image for LI
17.Use image to create line
18.Using color image to create round corner
19.Large corner image for the top bar
20.Image slide show
21.Text wrap around image
22.Image side bar
23.Using huge image to highlight your content
24.Using image to add shading to your text
25.Image Text wraper
26.Marginal Graphic Dropcap
27.Raised image
28.Lowered text
29.Image with clear left
30.Using css to wrap text around images
31.Image map area
32.HTML Image map
33.Creating and Using Image Maps
34.shape = "rect" indicates a rectangular area, with coordinates for the upper-left and lower-right corners
35.value "poly" creates a hotspot in the shape of a polygon, defined by coords
36.shape = "circle" indicates a circular area with the given center and radius
37. indicates that the specified image map is used with this image
38.Client-side Image Map Example
39.'area' defines the clickable area on a graphic or image
40.'coords' sets the coordinates of an 'a' or 'area' element
41.'galleryimg' eliminate the appearance of the toolbar for all 'img' elements
42.'img' displays a picture or a video clip
43.Adding shading to the picture
44.HTML code for image scaling
45.'ismap': Whether the image in 'img' element is a server-side image map
46.'lowsrc' gives the URL of a low-resolution image
47.'map' specifies the coordinates of an image map
48.'nohref' indicates that the 'area' in the 'map' has no link
49.'shape' sets the shape of an 'a' or 'area' element
50.'src' specifies a URL to be loaded by the element
51.'start' specifies when a video clip should start playing
52.'usemap' sets the image map for the map element
53.'hspace' sets the space in pixels between the left and right sides of an element
54.'vspace' sets the size in pixels of the vertical margins