Results 1 to 7 of 7

Thread: Why Wont This Work?!

  1. #1
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default Why Wont This Work?!

    I am re-formatting the Sweets & Treats website, due to some comments on the crumby source code (I blame Front Page) so I am diong it all by hand. BUT THERE IS A PROBLEM . . .

    This works in IE, but not FF. It's my first CSS page, so there could well be a stupid mistake. There are three pages:

    SnT.css :
    Code:
    body{
    	background-color: #000000;
    	text-align: center;
    	min-width: 700;
    }div#container{
    	width: 708;
    	margin-right: auto;
    	margin-left: auto;
    	background-color: #9B0000;
    	text-align: left;
    	border-width: 4;
    	border-style: outset;
    	border-color: #9B0000;
    }div#menupic{
    	float: left;
    	width: 120;
    	height: 65;
    	background-color: #9B0000;
    }div#head{
     	font-size: 60;
     	padding: 0;
     	font-weight: normal;
    	height: 65;
    	position: relative;
    	top: 15;
    	overflow: hidden;
    }div#menu{
    	width: 120;
    	float: left;
    	text-align: center;
    }div#text{
     	float: left;
    	background-color: #FFFFFF;
    	width: 575;
    	height: 600;
    }div#pic{
    	position: relative;
    	text-align: left;
    	float: left;
    	background-color: #9B0000;
    	width: 120;
    }div#footer{
    	float: left;
    	width: 575;
    } .picture {
    
    }.menuoption{
    	width: 100;
    	height: 20;
    	background-color: #FFFF9D;
    	text-decoration: none;
    	margin-top: 3;
    	margin-bottom: 3;
    	color: #000000;
    }
    menu.js :
    Code:
    		function SHOWPIC(pic){
    		 	pic = (pic + 'b');
    		 	document.getElementById(pic).style.display = 'block';
    		} function HIDEPIC(pic){
    		 	pic = (pic + 'b');
    			document.getElementById(pic).style.display = 'none';
    		}
    		
    		function pics(){
    			document.write("<div id=1b class=picture style='display: none;'>HOME</div>");
    			document.write("<div id=2b class=picture style='display: none;'>ABOUT US</div>");
    			document.write("<div id=3b class=picture style='display: none;'>PRODUCTS</div>");
    			document.write("<div id=4b class=picture style='display: none;'>PARTIES</div>");
    			document.write("<div id=5b class=picture style='display: none;'>GALLERY</div>");
    			document.write("<div id=6b class=picture style='display: none;'>CONTACT</div>");
    		}function menubuttons(){
    document.write("<a href='index.htm' class=menuoption id=1 onmouseover=SHOWPIC(id) onmouseout=HIDEPIC(id)><b>HOME</b></a><br>");
    document.write("<a href='aboutus.htm' class=menuoption id=2 onmouseover=SHOWPIC(id) onmouseout=HIDEPIC(id)><b>ABOUT US</b></a><br>");
    document.write("<a href='products.htm' class=menuoption id=3 onmouseover=SHOWPIC(id) onmouseout=HIDEPIC(id)><b>PRODUCTS</b></a><br>");
    document.write("<a href='parties.htm' class=menuoption id=4 onmouseover=SHOWPIC(id) onmouseout=HIDEPIC(id)><b>PARTIES</b></a><br>");
    document.write("<a href='gallery.htm' class=menuoption id=5 onmouseover=SHOWPIC(id) onmouseout=HIDEPIC(id)><b>GALLERY</b></a><br>");
    document.write("<a href='contact.htm' class=menuoption id=6 onmouseover=SHOWPIC(id) onmouseout=HIDEPIC(id)><b>CONTACT</b></a><br>");
    		}
    layout.htm
    Code:
    	<html>
    <head>
    	<title>www.Sweets-n-Treats.com</title>
    	<meta http-equiv='Keywords' content='candy, icecream, sweets & treats, food, parties'>
    	
    	<link href='SnT.css' rel='stylesheet' type='text/css'>
    	<script type='text/javascript' src='menu.js'></script>
    </head>
    <body>
    
    	<div id=container>
    		<div id=menupic>
    			<script type='text/javascript'>pics()</script>
    		</div>
    		
    		<div id=head>
    			<font face='vizier heavy'><center>Sweets & Treats</center></font>
    		</div>
    		
    		<div id=menu>
    			<br><br><br><br><br><br>
    			
    			<script type='text/javascript'>menubuttons()</script>
    		
    		</div>
    		
    		<div id=text><br>
    			TEXT
    		</div>
    		
    		<div id=pic>
    			picture here
    		</div>
    		
    		<div id=footer>
    			<center> Copyright &copy; 2007 by Sweets & Treats | Website by Jason M. Mace </center>
    		</div>
    	</div>
    
    </body>
    	</html>
    (Ignore the bad formatting on the JS file for now . . .)

    The background is suppose to go all the way down and the menu buttons are suppose to be the same size. . .
    Last edited by Jas; 06-09-2007 at 08:02 PM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  2. #2
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Looks the same for me in both FF and IE

  3. #3
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    What? Are you using FF 2 and IE7? (Should have said that)
    Last edited by Jas; 06-09-2007 at 08:52 PM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  4. #4
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yeah, I am using FF 2 and IE 7

  5. #5
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    ????? That's very strange.
    As for the CSS, under body, I've never heard of min-width.
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

  6. #6
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Weird that you are using FF2 and IE7 and it's the same. In any case, I used a table to make it work in FF. If anyone knows why the CSS isn't working for me, let me know.

    Quote Originally Posted by techno_race View Post
    ????? That's very strange.
    As for the CSS, under body, I've never heard of min-width.
    I read that some Web Browsers (Netscape?) mis-interpret the div's and cut them off or something. It's there as a precaution . . .
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  7. #7
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    min-width is a css property to set the minimum width of something. It really doesn't work well in IE, but there are some ways to get around it.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •