WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Solved Problem with cross-browser coding Mon Aug 13, 2012 3:44 am

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
Code:
<!--Web sajt je vlasnistvo Visoke tehnicke skole strukovnih studija u Pozarevcu-->
<html>
<title>Visoka tehnicka skola strukovni studija Pozarevac</title>
<head>
<style type="text/css">
body {
background-color:#f5f5f5;
font-family:"Trebuchet MS";
}
#main {
background-color:#ffffff;
width:1100px;
height:900px;
margin-left:auto;
margin-right:auto;
margin-top:30px;
border: 1px solid #000000;
-moz-border-radius:10px;
-webkit-border-radius:10px;
-border-radius:10px;
}
#navigation {
border-bottom:1px solid #999999;
position:absolute;
width:1100px;
float:left;
margin: 0 0 0 0;
padding:0px;
list-style:none;
background-color:#cccccc;
margin-top:-9px;
}
#navigation li{
float:left;
}
#navigation li a{
display: block;
padding: 4px 10px;
text-decoration:none;
color:#ffffff;
}
#navigation li a:hover{
background-color:#98b9df;
}
#img1 {
margin-top:30px;
border:1px solid #000000;
margin-left:20px;
}
#img2 {
margin-top:30px;
border:1px solid #000000;
}
#img3 {
margin-top:30px;
border:1px solid #000000;
}
#img4 {
margin-top:30px;
border:1px solid #000000;
}
#img5 {
margin-top:30px;
border:1px solid #000000;
}
#img1:hover {
margin-bottom:10px;
}
#img2:hover {
margin-bottom:10px;
}
#img3:hover {
margin-bottom:10px;
}
#img4:hover {
margin-bottom:10px;
}
#img5:hover {
margin-bottom:10px;
}
</style>
<script type="text/javascript">

</script>
</head>
<body>
<div id="main">
<img style="margin-left:140px;" src="http://www.dodaj.rs/f/11/nx/4NlzHX9I/logo.png" border="0" title="logo"></img><hr />
<ul id="navigation">
   <li><a href="#">Pocetna strana</a></li>
   <li><a href="#">O Skoli</a></li>
   <li><a href="#">Pravna akta</a></li>
   <li><a href="#">Nastavni planovi</a></li>
   <li><a href="#">Zaposleni</a></li>
   <li><a href="#">Studije</a></li>
   <li><a href="#">Publikacije</a></li>
   <li><a href="#">Upis</a></li>
   <li><a href="#">Savez Studenata</a></li>
   <li><a href="#">Asocijacije</a></li>
   <li><a href="#">Korisni linkovi</a></li>
</ul>
<a href=""><img id="img1" src="http://www.vts-pozarevac.edu.rs/Pics/zupcanici.jpg"></img></a>
<a href=""><img id="img2" src="http://www.vts-pozarevac.edu.rs/Pics/electricity.jpg"></img></a>
<a href=""><img id="img3" src="http://www.vts-pozarevac.edu.rs/Pics/eco.jpg"></img></a>
<a href=""><img id="img4" src="http://www.vts-pozarevac.edu.rs/Pics/poljop.jpg"></img></a>
<a href=""><img id="img5" src="http://www.vts-pozarevac.edu.rs/Pics/Konz.gif"></img></a>
<a href=""><img id="img5" src="http://www.vts-pozarevac.edu.rs/Pics/manag.gif"></img></a>
</div>
</body>
</html>

Ok that is code. Problem is when I run it trough Chrome everything work great, but when I run it trough Mozilla firefox it's bad in many ways. How to work on it?

2Solved Re: Problem with cross-browser coding Mon Aug 13, 2012 9:56 pm

ankillien

ankillien
Administrator
Administrator
Hi,

The things look fine to me except for the border radius in firefox.
To fix that, do not use -moz-border-radius property as mozilla doens't support it anymore, rather use border-radius only (without '-' in front of it). It would work fine then Smile

3Solved Re: Problem with cross-browser coding Mon Aug 13, 2012 11:25 pm

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
And navigation look fine to you?

4Solved Re: Problem with cross-browser coding Mon Aug 13, 2012 11:32 pm

ankillien

ankillien
Administrator
Administrator
Yes. It looks fine on Firefox 14.

5Solved Re: Problem with cross-browser coding Mon Aug 13, 2012 11:52 pm

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
So, Opera, Firefox and Chrome, everything work great? No, image missplace or anything?

6Solved Re: Problem with cross-browser coding Tue Aug 14, 2012 8:51 pm

ankillien

ankillien
Administrator
Administrator
I don't see any image misplacing in my browsers, firefox and chrome.

7Solved Re: Problem with cross-browser coding Wed Aug 15, 2012 12:38 am

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
Anyway I coded different now.

8Solved Re: Problem with cross-browser coding Wed Aug 15, 2012 12:26 pm

ankillien

ankillien
Administrator
Administrator
Okay Smile

Solved | Locked

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum