Jump to content


Photo

Using PHP with a CSS Layout


  • Please log in to reply
3 replies to this topic

#1 picklesnort

picklesnort
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 June 2006 - 01:18 AM

I've been trying to create a pure CSS fluid layout with this tutorial:

[a href=\"http://www.tjkdesign.com/articles/liquid/7.asp\" target=\"_blank\"]http://www.tjkdesign.com/articles/liquid/7.asp[/a]

However, I wanted to make the layout with PHP inclusion, therefore, if I updated something (ex. the menu), I would only have to edit one page.

The layout works fine in Mozilla Firefox:
[a href=\"http://www.kaidan.org/testing2/index.php\" target=\"_blank\"]http://www.kaidan.org/testing2/index.php[/a]

However, in Internet Explorer it does not. Here are some of the main problems:

1. layout spans the entire width of the page
2. the dark background image is nowhere to be seen
3. the layout is not centered as it's supposed to be

I have tried some things that would make the layout sort-of work, including putting a large div around the other divs, or using fixed widths instead of fluid. However, I am trying to make the layout as simple as possible, so I'm trying to avoid using such tactics.

Perhaps it has something to do with my coding? If someone could take a look and lend me a hand, it would be very much appreciated. Here are the links to pages you would probably want to take a look at:

The CSS: [a href=\"http://www.kaidan.org/testing2/style2.css\" target=\"_blank\"]http://www.kaidan.org/testing2/style2.css[/a]
The Index Page: [a href=\"http://www.kaidan.org/testing2/index.php\" target=\"_blank\"]http://www.kaidan.org/testing2/index.php[/a]



#2 Fyorl

Fyorl
  • Members
  • PipPipPip
  • Advanced Member
  • 273 posts
  • LocationUK

Posted 18 June 2006 - 01:32 AM

This is in the wrong forum as it's not a PHP problem but a CSS one. But in general, Internet Explorer sucks (I know from my experience of trying to code javascript for it). I would hook you up with my graphics designer but he's not online. Check the CSS forum
[table]



Don't worry, the printer fairies will sort it out.

#3 picklesnort

picklesnort
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 June 2006 - 01:37 AM

Fyorl;; Alright, thank-you very much!

#4 Fyorl

Fyorl
  • Members
  • PipPipPip
  • Advanced Member
  • 273 posts
  • LocationUK

Posted 18 June 2006 - 01:41 AM

Kein Problem
[table]



Don't worry, the printer fairies will sort it out.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users