Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi. First off, I'm fairly new with HTML and CSS. Keep that in mind. I'm no professional.

Here is a link to the site I've created for a local artist to their specifications: www.bransart.com

I've tested the site using the following: IE9, IE10, Mozilla Firefox, Google Chrome, and everything looks okay.

In IE8 a problem occurs. The text describing the artist is *not* supposed to flow into the picture of the little girl. How do I stop that from happening? As I said before, it looks okay in the browsers I tested except IE8.

Here is a snippet of the CSS used to style the
containing the descriptive content.

CSS
#content-nav {
    height: 320px; /*IMPORTANT ----- needs to be defined or page jump occurs ----- */
        width: auto;
        margin: 0px 0px 20px 0px;
        padding: 0px;
        background: #FFFFFF url(background-girl.png) top right no-repeat;
        clear: both;
        overflow: hidden;

        /* rounded edges */
        border-radius: 5px 5px 5px;
        webkit-border-radius: 5px 5px 5px;
        -moz-border-radius: 5px 5px 5px;

        /* drop shadow */
        box-shadow: 0 0 5px 5px #C2C2C2;
        -webkit-box-shadow: 0 0 5px 5px #C2C2C2;
        -mox-box-shadow: 0 0 5px 5px #C2C2C2;
}

section.content{
    heigth: auto;
    width: 65%;
    margin: 0px;
    padding: 20px 0px 0px 20px;
    line-height: 23px;
    text-align: justify;
    color: #515151;
    overflow: hidden;
}

section.content p.first:first-child:first-letter {
    font-size: 72px;
    padding: 10px;
    float: left;
    line-height: 35px;
}

section.content p.indent {
    text-indent: 20px;
}


If more clarification is needed or I've posted in the wrong category please let me know! Thanks.
Posted
Updated 23-Jun-12 9:08am
v4

Hi,
At first let me tell you one thing, Rounded Edges will not work through css in IE8.
May be your are getting problem because of these code:
CSS
/* rounded edges */
border-radius: 5px 5px 5px;
webkit-border-radius: 5px 5px 5px;
-moz-border-radius: 5px 5px 5px;

/* drop shadow */
box-shadow: 0 0 5px 5px #C2C2C2;
-webkit-box-shadow: 0 0 5px 5px #C2C2C2;
-mox-box-shadow: 0 0 5px 5px #C2C2C2;


You just use rounded corner extender of ajax to make it solve.
All the best.
--AK
 
Share this answer
 
CSS
section.content p.first:first-child:first-letter {
    font-size: 72px;
    padding: 10px;
    float: left;
    line-height: 35px;
    width:400px;
}


set width according to your requirement..

It will help you.

Note: dont forget to test in every browser while making your website compatible for all browsers.


Thanks
Ashish
 
Share this answer
 
Comments
Ubaid ur Rahman IT 25-Jun-12 1:42am    
Dear Where should we write this solution 2 code....i mean in which page. Bcoz am also facing same problem with browsers.
AshishChaudha 25-Jun-12 1:47am    
Dear Ubaid,

Are you using CSS?? or using inline style..you have to show your code exactly what you are doing..other wise how could anyone give solution??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900