Welcome to WebmasterWorld Guest from 54.227.83.19

Forum Moderators: not2easy

Message Too Old, No Replies

css positioning and php problem

     

Trisha

7:09 am on May 18, 2002 (gmt 0)

10+ Year Member



I have just started my first attempt at a site using CSS for positioning (header and 2 columns). When the file is saved as .html everything is fine, but when the extension is changed to .php and I try to view it in IE 5.5 the source code pops up instead of the page showing in the browser. It works fine within Homesite (4.x) and Netscape 6. Is there anything special that needs to be done to use CSS with PHP?

Thanks,
Trisha

brotherhood of LAN

7:49 am on May 18, 2002 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Hi trisha,

its probably unrelated to your CSS and more to do with the PHP. I use frontpage XP and my first experience of PHP Was yesterday. Most files open in FP, but with PHP they open in notepad.

Check out the options in the software you use and it may have options for "default editors" in regards to file extensions

I could be wrong though, could be the CSS, as i say, im a PHP newbie :)

nwilson

8:45 am on May 18, 2002 (gmt 0)



Yep. It's the php.

Can't think of any reason why the css would be the culprit.

Is the php source code showing?

All my pages are .php and I never have that trouble so I reckon it's something a little deeper.

Give a little more detail if you can?

Nick

Trisha

10:10 pm on May 18, 2002 (gmt 0)

10+ Year Member



Thanks for your help! I got it worked out, at least as well as it can get worked out I guess.

I have my Homesite settings set to use IE as the internal browser, and the page looks fine that way. It's when I click on the view external browser that the page displays fine in NN6, but in IE notepad opens showing the code instead. If I type the local file path/url into IE it works ok, although I could have sworn that last night even that didn't work. I'll just have to keep typing in the file name and click refresh to test changes as I'm working on it locally. When I uploaded a test copy to a server I didn't have any problems with it in either browser. And most importantly, the CSS worked the way I wanted it to - so far anyway!

Thanks again
Trisha

 

Featured Threads

Hot Threads This Week

Hot Threads This Month