Log In · Register

 
Does my site look misaligned?
SharperMyspace
post May 31 2008, 02:21 PM
Post #1


Senior Member
*****

Group: Official Designer
Posts: 323
Joined: Dec 2007
Member No: 601,314



I use IE. My site looks great in IE, but someone told me that it was messed up in FF.

Could someone here who uses FF tell me if it is messed up? Maybe it is just that one guy's computer and not nessisarily my fault. Thanks!

The link is in my sig.
 
 
Start new topic
Replies
fixtatik
post May 31 2008, 03:26 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



your best bet would honestly be starting from scratch. i can't tell just from looking at it quickly what the problems are, because you're putting styles in the divs themselves, like <div style="width:800px;">, etc.

if you use PHP, you'll be able to call each style sheet based on the page that you're using. try something like this:
CODE
<? $page = 'PAGE NAME';
include('header.php');
?>
content here
<?
include('sidebar.php');
include('footer.php');
?>

in your 'header.php' file, you can add a line of code telling browsers to call a style sheet based on the page:
CODE
<head>
<?
if($page == 'Home') {
echo '<link rel="stylesheet" type="text/css" href="style.css" media="screen" />'; }
else echo '<link rel="stylesheet" type="text/css" href="style2.css" media="screen" />';
?>
</head>

the first code is how you'd set up all of your pages, saved as a .php extension. of course, your host has to support PHP. are you on a paid or free server?

//edit: by the way, a lot of people use firefox because it supports web standards, while internet explorer doesn't. i.e. tends to make up its own HTML tags, round numbers, and display items incorrectly. more often than not, firefox, opera and safari will all display everything correctly the first time around, because they're all based around web standards.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: