2 replies [Last post]
j-ra
Offline
Regular
Topeka, KS
Last seen: 18 years 35 weeks ago
Topeka, KS
Joined: 2004-08-02
Posts: 14
Points: 0

problematic website: http://www.eyeoftheferret.com

Well, my first attempt at a pure-ish css page is almost finished... but... there is this big problem

It doesn't show any of the css stylings in mozilla, when it looks PERFECT in IE6

There are two possibilities that I can see as being a potential problem:
1) I'm using more than one style sheet
2) I'm using one style sheet that is generated by php (http://www.eyeoftheferret.com/Styles/eotfrandom.php)

Also, how can I set the maxlength for a form's input box

Thanks in advance for any input what-so-ever

j-ra
Offline
Regular
Topeka, KS
Last seen: 18 years 35 weeks ago
Topeka, KS
Joined: 2004-08-02
Posts: 14
Points: 0

First Attempt At CSS :: Mozilla Won't Display Right

...and for those who are curious...

this is the Styles\eotfrandom.php file

it generates a new background image and a new banner image per session instead of per reload.

<?php
include( "../ini.php" );

if ( $_SESSION["EOTF_BACKGROUND_SET"] != "T" )
{
	$_SESSION["EOTF_BACKGROUND_PATH"] = TQuery::SqlResult( "SELECT PICTURE_PATH FROM PIC WHERE PICTURE_TYPE='B' ORDER BY RAND() LIMIT 1" );
	
	$_SESSION["EOTF_BACKGROUND_SET"] = "T";
}

if ( $_SESSION["EOTF_HEADER_SET"] != "T" )
{	
	$_SESSION["EOTF_HEADER_PATH"] = TQuery::SqlResult( "SELECT PICTURE_PATH FROM PIC WHERE PICTURE_TYPE='H' ORDER BY RAND() LIMIT 1" );

	$_SESSION["EOTF_HEADER_SET"] = "T";

}

?> 

/* for the random file */
body
{
	background-image:	url('<?PHP echo $_SESSION["EOTF_BACKGROUND_PATH"]; ?>');
}

.bannerbox
{
	background:			url('<?PHP echo $_SESSION["EOTF_HEADER_PATH"] ?>') no-repeat top left; 
}

j-ra
Offline
Regular
Topeka, KS
Last seen: 18 years 35 weeks ago
Topeka, KS
Joined: 2004-08-02
Posts: 14
Points: 0

First Attempt At CSS :: Mozilla Won't Display Right

:oops:

well... i'll be more than happy to admit that i'm an idiot

i linked my styles like this...

<link type="text/css" rel="stylesheet" href="Styles\eotf.css">

and when i changed them to this...

<link type="text/css" rel="stylesheet" href="http://www.eyeoftheferret.com/Styles/eotf.css">

it works. ::angry at '\'::

Smile

thanks anyhow. now i get to figure out why it wraps my quote box to the next line.

Cool