css HELP - rewrite for IE

mustache_cat
avatar
rank newbie

newbie


Posts: 2
Joined: 2008-05-15
Location: wisconsin

Hello.
I'm very new, and was lucky to find the forum!
I'm in the process of creating my site - http://www.emmaklingbeil.info/template.html - and I know it's a common problem, but I use Firefox, and it's different in IE. I was wondering how to rewrite the css to be able to show up correctly in IE. Remember, I'm very new at website design.

Thanks for any help!
here's the css code

html, body {
margin: 0;
padding: 0;
}
body {
background: #f6f5f1;

}
h1 {
font: bold small-caps 1.25em Georgia, "Times New Roman", Times, serif;
text-transform: uppercase;
color: #B05A04;
}
h2 {
font: small-caps 1em Georgia, "Times New Roman", Times, serif;
color: #B06E04;
}
p, a {
font: 0.9em Arial, Geneva, Helvetica, sans-serif;
color: #999;
}
#container {
width: 780px;
margin: 0.5em auto 0.5em auto;
background: #fff;
text-align:center;
-moz-border-radius: 20px;
padding: 0.5em;
}
#container li {
float: left;
width: 150px;
height:150px;
list-style-type:none;
border: solid #ccc;
border-width: 1px 1px 0 0;
-moz-border-radius-topright:10px;
margin:1em;
text-align:center;
display:inline;
}
li img { border: none; }
ul#photos li a span { display: none; }
ul#photos li a:hover span {
display: block;
color: #FFFFFF;
background-color:gray;
-moz-border-radius: 0px;
padding: 0;
text-transform: uppercase;
font-size: .85em;
}
#photo, #pictureScreenObject {
display:none;
position: absolute;
left:15%;
z-index:100;
background:#fff;
padding:2em;
margin:1em;
font: 0.9em Arial, Helvetica, sans-serif;
border:1px solid #ccc;
text-align: center;
-moz-border-radius: 20px;
}

Caposoft
Caposoft's picture
rank Enthusiast

Enthusiast


Posts: 201
Joined: 2008-03-16

You don't need to rewrite

You don't need to rewrite your CSS or have a stylesheet for each and every browser. Depending on the problem there are workarounds. The border-radius cannot be done in IE. I don't use it, I still work with images. Although there are tutorials around that show you doing it without images, but it is a bunch of extra code, which for my feeling is not worth. The images that you would have to implement would be less size than the extra code.

Besides, your page doesn't validate, so at this time it would not even make sense to have a close look at your page. And you should not expect that people compare your page in the browsers and suggest how to resolve the problem.

Ed Seedhouse
Ed Seedhouse's picture
rank Guru

Guru


Posts: 2279
Joined: 2005-12-14
Location: Victoria British Columbia

As Capsoft points out, until

As Capsoft points out, until you give a browser valid html you have no cause for complaint if it doesn't show your page the way you think it should. There is no standard way of displaying invalid code.

I could change my plea to guilty,
but I don't think it would stick.

Ed Seedhouse

mustache_cat
mustache_cat's picture
rank newbie

newbie


Posts: 2
Joined: 2008-05-15
Location: wisconsin

Thanks for the

Thanks for the comments...but how do I validate my site?

thanks,
emma

ifohdesigns
ifohdesigns's picture
rank Enthusiast

Enthusiast


Posts: 273
Joined: 2008-02-22
Location: Providence, RI

mustache_cat wrote:Thanks

mustache_cat wrote:
Thanks for the comments...but how do I validate my site?

thanks,
emma

w3.org has a validator that will check your pages for validation. Just read through the errors and see what you have to fix.

http://ifohdesigns.com - Web Design That Is Neat.
http://ifohdesigns.com/blog - Read it please.

Ed Seedhouse
Ed Seedhouse's picture
rank Guru

Guru


Posts: 2279
Joined: 2005-12-14
Location: Victoria British Columbia

mustache_cat wrote:Thanks

mustache_cat wrote:
Thanks for the comments...but how do I validate my site?

This is already amply documented on this site in the "How to" section. We expect you to take the time to read the messages in that section, otherwise we end up answering the same question over and over and over again.

I could change my plea to guilty,
but I don't think it would stick.

Ed Seedhouse