x404.co.uk
http://www.x404.co.uk/forum/

HTML / CSS / PHP Help Required
http://www.x404.co.uk/forum/viewtopic.php?f=4&t=2009
Page 1 of 4

Author:  John_Vella [ Wed Jul 29, 2009 12:43 pm ]
Post subject:  HTML / CSS / PHP Help Required

Hi,

I've set up a webspace to do some PHP testing and uploaded a few files, which I got from a template, to test a PHP menu.

It looks fine using IE6 but the border doesn't look right in Firefox, (3.0.12) on Windows XP.

As I am at work at the moment, and cannot access the site from my main PC, I have to do everything via the laptop, which connects via a rubbish wireless connection, so I can't really keep changing the code and uploading, so could someone have a quick look see if they can spot anything wrong please?

The site is http://johnthegeek.x10hosting.com and although any constructive criticism is welcome I should stress that I am just testing the php menu system at the moment, and the actual web design part will come later, (though I may keep the basic layout)

If needs be I can always copy and paste the code here...

Thanks in advance,

John.

:)

Author:  EddArmitage [ Wed Jul 29, 2009 1:15 pm ]
Post subject:  Re: PHP Help

I too am at work (and limited to IE6) so can't see the problem (and haven't the time to look), but is it not likely to be a CSS/html issue and not an actual PHP issue? You may get more of a response if this is the case byt titling this thread thusly.

Edd

Author:  John_Vella [ Wed Jul 29, 2009 1:25 pm ]
Post subject:  Re: PHP Help

EddArmitage wrote:
I too am at work (and limited to IE6) so can't see the problem (and haven't the time to look), but is it not likely to be a CSS/html issue and not an actual PHP issue? You may get more of a response if this is the case byt titling this thread thusly.

Edd


Ok, I've renamed the thread, and I have also established that it is not a PHP issue, as the html version I was playing with doesn't work in FF either.

Author:  EddArmitage [ Wed Jul 29, 2009 4:48 pm ]
Post subject:  Re: HTML / CSS / PHP Help Required

Righty - my boss has gone home so I've had a sneaky look (Shhhhhhussssssssh! (8-p) )

The <ul> tag is not used correctly - it's just a container for <li> tags (list items). I often use the A List Apart guide as a reference, and it will allow you to produce much cleaner, and more semantic, markup (removing the nasty &nbsp;s, and removing the |s as well (which aren't really part of the document's contents so shouldn't be marked up)).

Hope this helps. I'll be at work for twenty minutes or so if you're about, but haven't an interweb conenction at home atm, so someone else may have to take over. If not I'll be here bright and early tomorrow morning :p

Edd

<edit>Righty - got to run along home now as someone is coming to start the process of me getting an interweb connection :) </edit>

Author:  forquare1 [ Wed Jul 29, 2009 5:34 pm ]
Post subject:  Re: HTML / CSS / PHP Help Required

[off-topic]

EddArmitage wrote:


That's a great reference Edd, cheers :D

[/off-topic]

Author:  John_Vella [ Wed Jul 29, 2009 6:39 pm ]
Post subject:  Re: HTML / CSS / PHP Help Required

Cheers Edd, I'll have a look at that link and Ben... it's not really off topic, as I asked for help and that link does look like a good 'un! :D

Author:  JJW009 [ Wed Jul 29, 2009 6:43 pm ]
Post subject:  Re: HTML / CSS / PHP Help Required

It looks exactly the same to me in both IE8.0.6001.18702 or FF3.0.12

Did you fix it already, or am I missing something? I see no "border" as such?

Author:  Nick [ Wed Jul 29, 2009 9:56 pm ]
Post subject:  Re: HTML / CSS / PHP Help Required

I'm accessing from Chrome.

Where is the PHP menu? The site looks to be static html to me (of course it would do though).

Are you using .htaccess to process .html files as PHP files???

Every link 404s too.

Are you updating it at the moment or something?

Author:  EddArmitage [ Thu Jul 30, 2009 7:39 am ]
Post subject:  Re: HTML / CSS / PHP Help Required

It's still there for me in IE6. The list that JV was talking about (iThink) is the following:

Code:
<div id="navigation">
<h2></h2>
<ul>
<ul><a href="index.html">Home</a>&nbsp;&nbsp;|
<a href="index.html">About Me</a>&nbsp;&nbsp;|
<a href="index.html">News</a>&nbsp;&nbsp;|
<a href="index.html">Photos</a>&nbsp;&nbsp;|
<a href="index.html">Projects</a>&nbsp;&nbsp;|
<a href="index.html">Hot Links</a>&nbsp;&nbsp;|
<a href="index.html">Contact Me</a>&nbsp;&nbsp;|</ul>

</div>


I can't download the css, though, but maybe someone else could embed that in a post? From a markup Point of view, I've also noted the addition an extra <ul> tag, that I didn't spot when skimming it last night. I'd suggest producing something like the following in the html:

Code:
<ul id="navigation">
<li><a href="index.html">Home</a></li>
<li><a href="index.html">About Me</a></li>
<li><a href="index.html">News</a></li>
<li><a href="index.html">Photos</a></li>
<li><a href="index.html">Projects</a></li>
<li><a href="index.html">Hot Links</a></li>
<li><a href="index.html">Contact Me</a></li>
</ul>

There seems little point containg the whole lot in a <div>, when a <ul> is also a container and behaves similarly, does it not?

Author:  big_D [ Thu Jul 30, 2009 8:07 am ]
Post subject:  Re: HTML / CSS / PHP Help Required

That <ul> at the end should be a </ul> ;)

Author:  EddArmitage [ Thu Jul 30, 2009 8:15 am ]
Post subject:  Re: HTML / CSS / PHP Help Required

I don't know what you mean, Dave - everything seems perfect to me ;)

Author:  big_D [ Thu Jul 30, 2009 8:53 am ]
Post subject:  Re: HTML / CSS / PHP Help Required

Yeah, right! ;

EddArmitage wrote:
Last edited by EddArmitage on Thu Jul 30, 2009 10:14 am, edited 1 time in total.

:lol:

Author:  John_Vella [ Thu Jul 30, 2009 11:50 am ]
Post subject:  Re: HTML / CSS / PHP Help Required

Hi Guys, update time.

I've figured out that the PHP side works fine, and it is just a rubbish template issue, as I did minimal changes to the code, and having checked the original, that didn't work either.

Due to a "little virus issue" last night I didn't get to do anything, but I'll try and do some serious coding at work today and will ask if you guys fancy doing some website-critique when I'm done, if that's Ok?

Thanks again,

John.

:)

Author:  EddArmitage [ Thu Jul 30, 2009 2:28 pm ]
Post subject:  Re: HTML / CSS / PHP Help Required

Sure. And if you need any help fixing the inevitable CSS bugs I'm sure we can help with some of the more common ones. I'll have a real internet connection this weekend toooooo! Yay!

Author:  Nick [ Thu Jul 30, 2009 5:39 pm ]
Post subject:  Re: HTML / CSS / PHP Help Required

John_Vella wrote:
Due to a "little virus issue" last night I didn't get to do anything


ARRRGGGH!!

Get away from your keyboards, lads, he's got swine flu!!

:o :o :o :shock: :shock: :? :| :(

Page 1 of 4 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/