Current location: Hot Scripts Forums » General Web Coding » CSS » CSS not working in mozilla


CSS not working in mozilla

Reply
  #1 (permalink)  
Old 07-04-08, 06:03 AM
ashokdudhade ashokdudhade is offline
Newbie Coder
 
Join Date: Jul 2008
Location: Pune
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
CSS not working in mozilla

I have designed CSS files they are working in IE6 & 7 but they not working in mozilla?
Reply With Quote
  #2 (permalink)  
Old 07-04-08, 06:06 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Post. Your. Code!
Reply With Quote
  #3 (permalink)  
Old 07-04-08, 06:48 AM
D3C D3C is offline
Newbie Coder
 
Join Date: Jul 2008
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
We can't help you if you don't display your code.
Reply With Quote
  #4 (permalink)  
Old 07-04-08, 07:17 AM
ashokdudhade ashokdudhade is offline
Newbie Coder
 
Join Date: Jul 2008
Location: Pune
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Here is code

css Code:
  1. body{
  2.     padding: 0;
  3.     background: #FFFFFF;
  4.     width: 699px;
  5.     font-familysans-serif;
  6.     color: #3B3B3B;
  7.         line-height: 14px;
  8.         font-size: 0.75em;
  9.     BORDER-RIGHT:  black 1px solid;
  10.     PADDING-RIGHT:  5px;
  11.     BORDER-TOP:  black 1px solid;
  12.     PADDING-LEFT:  5px;
  13.     PADDING-BOTTOM:  10px;
  14.     MARGIN-TOP:  20px;
  15.     MARGIN-BOTTOM:  20px;
  16.     MARGIN-LEFT:  125px;
  17.     BORDER-LEFT:  black 1px solid;
  18.     PADDING-TOP:  28px;
  19.     BORDER-BOTTOM:  black 1px solid
  20. }

This is the code. The body border is not displaying properly.

Last edited by Nico; 07-04-08 at 09:06 AM. Reason: Wrappers.
Reply With Quote
  #5 (permalink)  
Old 07-04-08, 05:45 PM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
Maybe it isn't possible to correctly visualise this in Mozilla.. ?
Besides, try using lower case.
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
  #6 (permalink)  
Old 07-04-08, 05:57 PM
D3C D3C is offline
Newbie Coder
 
Join Date: Jul 2008
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
So the border is not displaying in firefox?
Reply With Quote
  #7 (permalink)  
Old 07-05-08, 01:04 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Trying to manipulate the body element kinda restricts what you can do with your layout.
By using div elements and manipulating their margins, you can accurately control the size and position of the element.
And by manipulating their padding you can accurately control the positioning of their contents.

Example:
CSS Code:
  1. <html>
  2. <head>
  3. <style>
  4. body
  5. {
  6.  margin:0px;
  7.  background-color:#FFFFFF;
  8.  color:#3B3B3B;
  9.  font-family:'Trebuchet MS', Arial, Helvetica, sans-serif;
  10.  line-height:14px;
  11.  font-size:0.75em;
  12.  }
  13. #header
  14. {
  15.  height:19%;
  16.  margin-left:25%;
  17.  margin-right:5%;
  18.  padding-left:10px;
  19.  padding-top:5px;
  20.  border:1px solid #000000;
  21.  }
  22. #content
  23. {
  24.  height:52%;
  25.  margin-left:5%;
  26.  margin-right:25%;
  27.  padding-left:50px;
  28.  padding-top:40px;;
  29.  border:1px solid #000000;
  30.  }
  31. #footer
  32. {
  33.  height:19%;
  34.  margin-left:15%;
  35.  margin-right:15%;
  36.  text-align:center;
  37.  padding-top:15px;
  38.  border:1px solid #000000;
  39.  }
  40. </style>
  41. <!--[if IE]>
  42. <style>
  43. #header
  44. {
  45.  height:20%;
  46.  }
  47. #content
  48. {
  49.  height:60%;
  50.  }
  51. #footer
  52. {
  53.  height:20%;
  54.  }
  55. </style>
  56. <![endif]-->
  57. </head>
  58. <body>
  59.   <div id="header">Header Stuf</div>
  60.   <div id="content">Content Stuf</div>
  61.   <div id="footer">Footer Stuf</div>
  62. </body>
  63. </html>
__________________
Jerry Broughton

Last edited by job0107; 07-05-08 at 01:10 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with CSS and PHP working together:( cssgopher PHP 7 03-24-08 03:31 AM
apache not working on Mozilla and Opera edzjins PHP 5 09-26-07 04:03 PM
apache not working on Mozilla and Opera edzjins Web Servers 0 09-25-07 09:05 AM
Image functions in php is not working in mozilla Murugesan PHP 1 12-02-06 04:15 AM
Css and php not working together homeboy PHP 0 12-23-05 04:28 PM


All times are GMT -5. The time now is 02:11 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.