Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > CSS
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 11-12-2009, 10:01 AM
  #1
Flick
Novice (Level 1)
 
Join Date: Sep 2009
Posts: 3
iTrader: (0)
Flick is an unknown quantity at this point
CSS fails to center in Safari

Hi guys, I'm currently building a rather ambitious website with some friends. So far I've got the basic structure to work nicely in firefox, just tried the site in safari and and spry navigation bar isn't displaying correctly. Not only is it not centered, its also a completely different size. The first attachment is what it looks like in safari and the second one is how its meant to look.

This is the CSS I'm using so far -

The CSS for the div that the spry menu is housed in,
Code:
#hoznav {
	background-image:url(/styles/HAS/theme/images/div.gif);
	background-repeat:repeat-x;
	border-color:#D7D3CA;
	border-style:solid none;
	border-width:1px 0 2px;
	height:36px;
	margin:0 auto;
	position:absolute;
	top:185px;
	width:100%;
}
The CSS for the menu
Code:
ul.MenuBarHorizontal
{
	margin: 0 auto;
	padding: 0;
	list-style-type: none;
	font-size: 100%;
	cursor: default;
	max-width:720px;
	min-width:300px;
	width:100%;
}

ul.MenuBarHorizontal li
{
	border:1px solid #D7D3CA;
	cursor:pointer;
	float:left;
	font-size:100%;
	line-height:3em;
	list-style-type:none;
	margin:0;
	padding:0;
	position:relative;
	text-align:center;
	vertical-align:middle;
	width:17%;
}
Attached Thumbnails
Click image for larger version

Name:	Picture 8.png
Views:	5
Size:	726.4 KB
ID:	10419  Click image for larger version

Name:	Picture 9.png
Views:	4
Size:	708.1 KB
ID:	10420  
Flick is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-12-2009, 11:42 AM
  #2
Pegasus
Extremely Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 21,472
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
What doctype are you using for the page? What are the default setting you have for font size and such for Safari? Either one of those two things can affect the appearance of a page.
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is online now   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-12-2009, 12:05 PM
  #3
Flick
Novice (Level 1)
 
Join Date: Sep 2009
Posts: 3
iTrader: (0)
Flick is an unknown quantity at this point
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
The default font size is set to 65% (10px)
Flick is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 11-12-2009, 01:14 PM
  #4
Pegasus
Extremely Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 21,472
iTrader: (0)
Pegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to allPegasus is a name known to all
Try removing the float: left from the li.
__________________


Decaf is the root of all evil...
HTMLForums Awards 2008
Pegasus is online now   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


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



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 09:45 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.