homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

css positioning and php problem

10+ Year Member

Msg#: 193 posted 7:09 am on May 18, 2002 (gmt 0)

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?



brotherhood of LAN

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

Msg#: 193 posted 7:49 am on May 18, 2002 (gmt 0)

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 :)


Msg#: 193 posted 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?



10+ Year Member

Msg#: 193 posted 10:10 pm on May 18, 2002 (gmt 0)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved