- /*------------------------this defaults all browsers to 0------------------------*/
- * {
- margin: 0px;
- padding: 0px;
- }
- a {
- text-decoration: none;
- color: #CC9900;
- }
- #hr {
- width: 570px;
- height: 3px;
- background: url(images/main%20layout%20gfx/hr.png);
- margin: 10px;
- clear: both;
- }
- img.left {
- float: left;
- margin: 0;
- padding: 0;
- clear: left;
- }
- }
- img.right {
- float: right;
- margin: 0;
- padding: 0;
- clear: right;
- }
- #hr_gold {
- width: 570px;
- height: 3px;
- background: url(images/main%20layout%20gfx/hr_gold.png);
- margin: 10px;
- clear: both;
- }
- /*base styling*/
- body {
- text-align: center;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 75%;
- background-color: #EBE6C9;
- }
- #wrapper {
- position:relative;
- width:800px;
- margin: 0 auto;
- text-align:left;
- font-size: 85%;
- background: url(images/main%20layout%20gfx/content_sidebar_bg.jpg) repeat-y;
- }
- #clear {
- clear:both;
- }
- /*-----------------------------position containers elemnts------------------------*/
- /*----heading------*/
- #header {
- position:relative;
- background:#CC3399 url(images/main%20layout%20gfx/heading_bg.jpg) repeat-x top left;
- height: 140px;
- }
- #header h1{
- margin-left: -9000px;
- }
- #header #heading_title {
- position: absolute;
- top: 20px;
- left: 20px;
- width: 403px;
- height: 64px;
- background: url(images/main%20layout%20gfx/heading_title.png) no-repeat top left;
- }
- #header #heading_logo {
- position: absolute;
- top: 10px;
- left: 80px;
- width: 121px;
- height: 119px;
- background: url(images/main%20layout%20gfx/heading_logo.png) no-repeat top left;
- }
- #header #heading_effect {
- position: absolute;
- top: 0px;
- left: 0px;
- width: 337px;
- height: 140px;
- background: url(images/main%20layout%20gfx/heading_effect.png) no-repeat bottom left;
- }
- #header #heading_sidepic {
- position: absolute;
- top: 0px;
- right: 0px;
- width: 220px;
- height: 140px;
- background: url(images/main%20layout%20gfx/heading_sidepic_bg.png) no-repeat top right;
- }
- /*----content area-----*/
- #content {
- position: relative;
- background: url(images/main%20layout%20gfx/content_bg.jpg) repeat-y top left;
- background-color:#E1EBC8;
- width:590px;
- margin: 0px;
- padding: 15px;
- float: left;
- clear: right;
- }
- #content #border1 {
- position: absolute;
- top: 0;
- left: 0;
- width: 800px;
- height: 5px;
- background: url(images/main%20layout%20gfx/border1.jpg) top left;
- }
- #content img {
- padding: 0px;
- border: 0px solid #877c57;
- margin: 10px;
- }
- #content h1 {
- color: #336633;
- font-size: 3em;
- font-family: "Lucida Sans", "MS Sans Serif", "Trebuchet MS";
- }
- #content h2 {
- color: #009900;
- font-size: 1.5em;
- font-family: "Lucida Sans", "MS Sans Serif", "Trebuchet MS";
- clear: left;
- }
- /*------main navagation style-----*/
- #content ul {
- position: absolute;
- margin: 0;
- padding: 0;
- list-style: none;
- width: 560px;
- height: 40px;
- background: url(images/main%20layout%20gfx/nav_bg.png) no-repeat top left;
- left: 30px;
- top: 10px;
- }
- #content ul li {
- float: left;
- }
- #content ul a {
- padding: 0 2em;
- font-size: 12px;
- line-height: 3em;
- font-weight:bold;
- text-decoration: none;
- float: center;
- display: block;
- color: #CCCC33;
- }
- #content ul li a:hover {
- color:#663300;
- }
- /*---------------------------sidebar-----------------------*/
- #sidebar {
- float:right;
- background: url(images/main%20layout%20gfx/sidebar_bg.jpg) repeat-y top left;
- background-color:#5A8DB4;
- width:158px;
- padding: 10px;
- margin: 0px;
- }
- /*----sidebar nav-------*/
- #sidebar ul {
- border: solid 0px #003300;
- list-style: none;
- width: 160px;
- padding: 0;
- margin: 0;
- }
- #sidebar ul li {
- border: solid 0px #003300;
- display: inline;
- display:block;
- line-height: 3em;
- text-decoration: none;
- text-align: left;
- }
- #sidebar ul a {
- font-size: 12px;
- color: #993300;
- padding-left: 5px;
- }
- #sidebar ul li a:hover {
- color: #FFCC00;
- background: url(images/main%20layout%20gfx/sidebar_nav_bg.png);
- display: inline;
- display: block;
- }
- #sidebar ul h2 {
- text-align: left;
- font-size: 16px;
- color: #CCCC33;
- padding-left: 5px;
- background-image: url(images/main%20layout%20gfx/sidebar_nav_bg2.png);
- }
- /*----footer-----*/
- #footer {
- color:#EBE6C9;
- font: 1.2em Georgia, "Times New Roman", Times, serif;
- width:800px;
- background: url(images/main%20layout%20gfx/footer_bg.jpg) repeat-x top left;
- height: 40px;
- text-align: center;
- }
- #footer a {
- color: #fff;
- }
CSS float Right Problem in FireFox PLease Help me?
CSS float Right Problem in FireFox PLease Help me?
the problem is in the main content area the text will not wrap around a
image if the image is floated to the right.
it dose work in IE but i think IE is Reading the code wrong i think the main problem is in my css
here is the CSS
here is the html
the problem is in the main content area the text will not wrap around a
image if the image is floated to the right.
it dose work in IE but i think IE is Reading the code wrong i think the main problem is in my css
here is the CSS
Code: Select all
here is the html
Code: Select all
- <!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>Natural jade bonsai - bonsai trees for you </title>
- <link href="base_layout.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <!--[if IE]>
- <style type="text/css">
- body {word-wrap: break-word;}
- </style>
- <![endif]-->
- <div id="wrapper">
- <div id="header">
- <h1>Welcome to Natural Jade Bonsai.com</h1>
- <div id="heading_sidepic"></div>
- <div id="heading_effect"></div>
- <div id="heading_logo"></div>
- <div id="heading_title"></div>
- </div>
- <div id="content">
- <div id="border1"></div>
- <ul>
- <li><a href="#">Home</a></li>
- <li><a href="#">Abous us</a></li>
- <li><a href="#">Our Bonsai's</a></li>
- <li><a href="#">Gallery</a></li>
- <li><a href="#">Contact us</a></li>
- </ul>
- <br />
- <br />
- <br />
- <br />
- <h1 align="left">Featured Article</h1>
- <img src="images/bonsai_tree1.png" alt="Big Old Bonsai Tree" width="200" height="263" class="right" /><br />
- <br />
- <h2 align="left"><em>Long Live The Bonsai </em></h2>
- <br />
- <p align="left" class="left">This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a> This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a> This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a> This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a>This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a></p>
- <p align="left"> </p>
- <p align="left"> </p>
- <div class="left" id="hr"></div>
- <h1>Bonsai of the Month</h1>
- <br />
- <h2 align="left"><em>Sayahi Bonsai</em></h2>
- <p align="left"> </p>
- <div align="left"><img src="images/bonsai_tree_2.png" width="250" height="373" class="left" /> </div>
- <p align="left"> </p>
- <p align="left"> </p>
- <p align="left"><span class="left">This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a></span></p>
- <p align="left"> </p>
- <p align="left"><span class="left">This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a></span></p>
- <p align="left"> </p>
- <p align="left"><span class="left">This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a></span></p>
- <p align="left"> </p>
- <p align="left"><span class="left">This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a></span></p>
- <p align="left"> </p>
- <p align="left"><span class="left">This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a></span></p>
- <p align="left"><br />
- </p>
- <div class="clear" id="hr_gold"></div>
- <p align="left">This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. This is a bueatiful display of natures Constant desire to survive. this tree has been deseased many times and it has had it’s dry seasons througout it’s life, yet it’s still kicking. <a href="#"><em>Read more</em></a></p>
- <p align="left"> </p>
- <p> </p>
- </div>
- <div id="sidebar">
- <ul>
- <li><h2>Bonsai's</h2></li>
- <li><a href="#">Stunt Trees</a></li>
- <li><a href="#">Slow Growing</a></li>
- <li><a href="#">Night Trees</a></li>
- <li><h2>Helpful Tips</h2></li>
- <li><a href="#">Caring For your Bonsai</a></li>
- <li><a href="#">Hi-Tech Help</a></li>
- <li><a href="#">Step By Step</a></li>
- <li><h2>The Bonsai Diet</h2></li>
- <li><a href="#">List of foods</a></li>
- <li><h2>Our Friends</h2></li>
- <li><a href="#">Peter's Bonsai's</a></li>
- <li><a href="#">Bonsai Tress and us</a></li>
- <li><a href="#">Southern Bonsai's</a></li>
- </ul>
- </div>
- <div id="clear"></div>
- <div id="footer" class="">
- <br />
- <p>© 2008 <a href="#">www.naturaljadebonsai.com</a> Site Design by: <a href="http://www.walkwaywebdesigns.com">www.walkwaywebdesigns.com</a></p>
- </div>
- </div>
- <br />
- <br />
- </body>
- </html>
- Anonymous
- Bot


- Joined: 25 Feb 2008
- Posts: ?
- Loc: Ozzuland
- Status: Online
February 21st, 2008, 12:04 pm
- righteous_trespasser
- Battlecruiser


- Joined: 12 Mar 2007
- Posts: 5494
- Loc: South-Africa
- Status: Offline
ok here is the link to the test site i have up http://www.caverun.org/test%20site%201/index.html
try it in firefox or netscape then try it in IE you well see the main bonsai tree picture float nicely to the right of the text,
but in firefox and netscape it dose not float right it stays left and pushes the text under it.
that the problem i want fixed
so when i tell a image to float right using the class img.right it should look like it dose in IE accross all browsers
thanks for quick response jason
try it in firefox or netscape then try it in IE you well see the main bonsai tree picture float nicely to the right of the text,
but in firefox and netscape it dose not float right it stays left and pushes the text under it.
that the problem i want fixed
so when i tell a image to float right using the class img.right it should look like it dose in IE accross all browsers
thanks for quick response jason
- righteous_trespasser
- Battlecruiser


- Joined: 12 Mar 2007
- Posts: 5494
- Loc: South-Africa
- Status: Offline
just change this:
to this:
Code: Select all
- #content img {
- padding: 0px;
- border: 0px solid #877c57;
- margin: 10px;
to this:
Code: Select all
- #content img {
- padding: 0px;
- border: 0px solid #877c57;
- margin: 10px;
- float:right;
Would you love me more if I were a robot?
i Finally just got it it just hit me lol
all i had to do was and the img.right/img.left float classes to the content div like this
all i had to do was and the img.right/img.left float classes to the content div like this
Code: Select all
- #content img.right {
- float: right;
- margin: 0;
- padding: 0;
- clear: right;
- }
Page 1 of 1
To Reply to this topic you need LOGIN or REGISTER. It is free.
Post Information
- Total Posts in this topic: 6 posts
- Moderator: Moderator Team
- Users browsing this forum: e.s.guardian and 81 guests
- You cannot post new topics in this forum
- You cannot reply to topics in this forum
- You cannot edit your posts in this forum
- You cannot delete your posts in this forum
- You cannot post attachments in this forum


