Jump to content

[SOLVED] A whole lotta trouble. :)


jscix

Recommended Posts

Okay. First off thanks for any help in advance.

 

My problems are:

 

1. I'm a CSS Noob.

2. My CSS only displays properly on Firefox (Windows) and not on IE (Windows)  -- I haven't checked other browsers, yet.

3. When I resize the brower, the navigation will drop down a line, outside of the background box they are inbedded in.

 

Questions:

1. Does anyone know what I need to do, to make this display on internet explorer, as it does on mozilla?

2. How do I fix this so that; when the browser is resized the navigation links, do not move?

 

You can see the page at:  http://www.novascene.net/layout.php  (CSS is not in an external file.)

 

Also my source is as follows:

 

<!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>Novascene.net</title>
<link rel="shortcut icon" href="music.png" type="image/x-icon" />

<style type="text/css" media="screen"><!--
body {
font-size: 11px;
font-family: Verdana, Arial, SunSans-Regular, Sans-Serif;
color:black;
padding:0px;
margin:0px;
}
a {color: blue;}
a:visited {color:blue;}
a:hover {color: blue;}
a:active { color:blue;}

#nav {
display: block;
width: 100%;
height: 15px;
background-color: #C0C0C0;
}

navlink {
display: inline;
width: 80px;
height; 15px;
background-color: #C0C0C0;
border: 1px solid black;
}

navlink:hover {
background-color: #C0C2C1;
border: 1px dashed #000000 ;
color: #000000;
}

</style>

<html>
<body>
<img src="nvscene2.gif"><br>

<div id="nav">
<font style="margin-left: 100px;"><a href="#test"><navlink>Test Link1</a></navlink></font>
<a href="#test"><navlink>Test Link2</a></navlink></font>
<a href="#test"><navlink>Test Link3</a></navlink></font>
<a href="#test"><navlink>Test Link4</a></navlink></font>

</div>
<br><br>
hi 
</body>
</html>

 

 

I would greatly appreciate ANY help. Thanks much. :)

Link to comment
Share on other sites

Not sure if this will solve the problem.

But instead of using 'display:inline', do display:block; and put the links on a list.

 

and do this

 

navlist ul, navlist li {

  padding:0;

  margin: 0;

  float: left;

  list-style-type: none;

}

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.