Reply to topic  [ 48 posts ]  Go to page Previous  1, 2, 3, 4  Next
HTML / CSS / PHP Help Required 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
Nick wrote:
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: :? :| :(


No, it was my PC that was infected with some variant of the Bugbear virus...

Ended up wiping the drive and putting Mandriva on for now, as the prospect of installing Windows at 21:00 didn't really appeal.

Oh, and I didn't get any coding done last night, but today's Friday, and I'm hoping it's going to be a nice quiet day ;)

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Fri Jul 31, 2009 7:22 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
How goes it JV? If you want I've got some CSS here for a site I'm working on for someone very similar to yours (uses slashes instead of pipes to seperate the items):
Code:
#Navigation {
   list-style-type: none;
   text-align: center;
   padding-left: 0px;
}
#Navigation li {
   display: inline;
   font-size: large;
   font-weight: bold;
   text-transform: uppercase;
}
#Navigation li.selected a {
   border-bottom-color: white;
   border-bottom-width: 2px;
   border-bottom-style: solid;
}
#Navigation li:after {
   content: " / ";
}
#Navigation li.last:after {
   content: "";
}

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Sat Aug 01, 2009 2:27 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
Thanks Edd, and I have an update!

I was having a mess about with the Microsoft Expression thingy and having run everything through Notepad now have what appears to be a working PHP menu, which was what I was after.

So... who fancies visiting http://johnthegeek.x10hosting.com and telling me if it works?

There isn't any content, aside from the usual "latin filler text" and the menu options will probably change, but I want to know if the menu works on different platforms/browsers.

So far I know it works on:

Windows 7 with Internet Explorer 8 (8.0.7100.0)
Windows 7 - FireFox 3.5.1 (Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729))
Windows 7 - Google Chrome (2.0.172.39)

Thanks again everyone!

:D

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Mon Aug 03, 2009 11:41 am
Profile WWW
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:25 pm
Posts: 10691
Location: Bramsche
Reply with quote
Works on Internet Explorer for Windows Mobile - although the body gets shown beneath the menus.

_________________
"Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari

Executive Producer No Agenda Show 246


Mon Aug 03, 2009 12:29 pm
Profile ICQ
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
Thanks Dave, It's the same on my 'phone.

When I finalize the layouts I'm thinking of going with using percentage sizing, instead of fixed sizes.

Good idea or not?

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Mon Aug 03, 2009 12:36 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
Looks OK in IE6 :)

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Mon Aug 03, 2009 12:48 pm
Profile
Site Admin
User avatar

Joined: Fri Apr 24, 2009 6:12 am
Posts: 7011
Location: Wiltshire
Reply with quote
John_Vella wrote:
Thanks Dave, It's the same on my 'phone.

When I finalize the layouts I'm thinking of going with using percentage sizing, instead of fixed sizes.

Good idea or not?

Unless its a very complex page lay out I'd go % every time. Its always a bone of contention in the design community though. :D

_________________
<input type="pickmeup" name="coffee" value="espresso" />


Mon Aug 03, 2009 5:25 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
Ok, here's another update: Yes, I have decided that percentages are the way forward. I think ;)

Here's another screenshot. Since this is a test site, which I am using for educational purposes I want to make it fully accessable so...

WHAT do you think (clicky)

The "Viewing Options" link would be a drop down menu with High contrast options, etc.

Opinions?

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Mon Aug 03, 2009 8:16 pm
Profile WWW
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 11:36 pm
Posts: 3527
Location: Portsmouth
Reply with quote
Purely, out of interest JV - what have you used PHP for?

I can't imagine why you would want to produce that menu using PHP unless you were planning to write a CMS for it or something, which I doubt you are for a personal site???

_________________
Image


Mon Aug 03, 2009 9:24 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
I used PHP because I wanted to be able to change the menu options without editing every page individually. Unless there is another way?

I do also want to look at PHP apps, such as a photo album, etc.

Typing this on my mobile - more information tomorrow :)

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Mon Aug 03, 2009 10:05 pm
Profile WWW
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 11:36 pm
Posts: 3527
Location: Portsmouth
Reply with quote
Ah okay, I thought you were using PHP to churn through and spit out the html for the list itself.

I assume you are using include() then?

That's the way I would do it. There are alternatives, but I just like the PHP way. :)

_________________
Image


Mon Aug 03, 2009 10:24 pm
Profile
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
Yes, I am using include() and I will try and put the code up when I get a minute.

Has anyone had a chance to look at the screenshot for the proposed new look?

Since this is an "educational" (for me) site I figure I might as well go the whole hog and make it as accessible as possible.

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Tue Aug 04, 2009 7:21 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
Ok, here's the line which accesses the menu:

Code:
<?php include("menu.php"); ?>


And here is the menu, (the bottom version, as I am scrapping the side version)

Code:
<a href="index.php">Home</a> |
<a href="about.php">About</a> |
<a href="news.php">News</a> |
<a href="calendar.php">Calendar</a> |
<a href="photo_gallery.php">Photo Gallery</a> |
<a href="information_links.php">Links</a> |
<a href="faq.php">FAQ</a> |
<a href="contact.php">Contact</a>

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Tue Aug 04, 2009 9:39 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
John_Vella wrote:
And here is the menu, (the bottom version, as I am scrapping the side version)

Code:
<a href="index.php">Home</a> |
<a href="about.php">About</a> |
<a href="news.php">News</a> |
<a href="calendar.php">Calendar</a> |
<a href="photo_gallery.php">Photo Gallery</a> |
<a href="information_links.php">Links</a> |
<a href="faq.php">FAQ</a> |
<a href="contact.php">Contact</a>


The only thing I'd suggest about that is removing the |s from the html, putting them in using CSS, and use an unordered list, so that screen-readers and the like just read a list of links.

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Tue Aug 04, 2009 9:43 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Fri Apr 24, 2009 7:55 am
Posts: 7935
Location: Manchester.
Reply with quote
EddArmitage wrote:
John_Vella wrote:
And here is the menu, (the bottom version, as I am scrapping the side version)

Code:
<a href="index.php">Home</a> |
<a href="about.php">About</a> |
<a href="news.php">News</a> |
<a href="calendar.php">Calendar</a> |
<a href="photo_gallery.php">Photo Gallery</a> |
<a href="information_links.php">Links</a> |
<a href="faq.php">FAQ</a> |
<a href="contact.php">Contact</a>


The only thing I'd suggest about that is removing the |s from the html, putting them in using CSS, and use an unordered list, so that screen-readers and the like just read a list of links.


Does the fact that the file is saved as menu.php make any difference?

I'm at work so can't do any "proper" testing at the moment, but any further thoughts would be gratefully received.

:D

_________________
okenobi wrote:
John's hot. No denying it. But he's hardly Karen now, is he ;)

John Vella BSc (Hons), PGCE - Still the official forum prankster and crude remarker :P
Sorry :roll:
I'll behave now.
Promise ;)


Tue Aug 04, 2009 9:59 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 48 posts ]  Go to page Previous  1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.