homepage Welcome to WebmasterWorld Guest from 107.22.37.143
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
css positioning and php problem
Trisha




msg:1211704
 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?

Thanks,
Trisha

 

brotherhood of LAN




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

nwilson




msg:1211706
 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




msg:1211707
 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
Trisha

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved