RE: [WSG] PHP Standards

2008-05-18 Thread Michael MD
The php site - php.net is always a good place to start for php There are often some good snippets to be found in user comments too Its not as good as it was a couple of years ago though, as they seem to have removed a lot of useful stuff that you could do in pure php because they can now be

Re: [WSG] Centering all items in a li

2008-05-18 Thread Stuart Foulstone
I seem to remember someone in a previous thread, about similar problem, suggested using, display: table-cell; vertical-align: middle; On Sat, May 17, 2008 3:39 pm, Darren Lovelock wrote: Hi list, I've been trying to find a solution that will allow me to vertically center all the items in

RE: [WSG] Centering all items in a li

2008-05-18 Thread Darren Lovelock
Thanks, but as I said, that doesn't work in this case because the li is floating. Also I think it is dependant on the the li having a set height value which I cant do either. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stuart Foulstone Sent: 18 May

Re: [WSG] Centering all items in a li

2008-05-18 Thread Matt Fellows
Shouldn't have to set a height, the line will wrap automatically (unless you specify not to). Thanks, but as I said, that doesn't work in this case because the li is floating. Do the li's have to float? On Sun, May 18, 2008 at 8:49 PM, Darren Lovelock [EMAIL PROTECTED] wrote: Thanks, but as

RE: [WSG] Centering all items in a li

2008-05-18 Thread Darren Lovelock
Hi Matt, No worries. Still missing it though! Text-align:center will align the elements horizontally centered. I want to align the elements INSIDE the li to be vertically centered to the height of the li. So there is an even space above and below each of the elements inside the li. At the

Re: [WSG] Centering all items in a li

2008-05-18 Thread Matt Fellows
lol I think I will leave this one alone, I think i'm making you're job more difficult instead of the other way around! Please do send through your solution when you find it so I can have that 'light bulb' moment. Cheers, -- Matt Fellows http://www.onegeek.com.au/

Re: [WSG] Centering all items in a li

2008-05-18 Thread Rahul Gonsalves
Darren, On 17-May-08, at 8:09 PM, Darren Lovelock wrote: I've been trying to find a solution that will allow me to vertically center all the items in a li. The big problems i've got are that the li's are a non-fixed height and are floating to the left. A link to a stripped down test would

RE: [WSG] Centering all items in a li

2008-05-18 Thread Darren Lovelock
Yeah it is a bit of a tricky one lol! Looks like this is one example where tables are better for layout! Thanks very much for taking a look though :) Darren -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Fellows Sent: 18 May 2008 13:09 To:

Re: [WSG] Centering all items in a li

2008-05-18 Thread Viable Design
Darren, Try assigning a line-height and a height to the li, and make the two the same. Jo On Sun, May 18, 2008 at 8:54 AM, Darren Lovelock [EMAIL PROTECTED] wrote: Yeah it is a bit of a tricky one lol! Looks like this is one example where tables are better for layout! Thanks very much for

Re: [WSG] Centering all items in a li

2008-05-18 Thread Matijs
Sounds like you can only change the CSS and not the (x)HTML, is that correct? You're also floating the li's... that puts them behind eachother right? Would displaying them inline help? On Sun, May 18, 2008 at 3:24 PM, Viable Design [EMAIL PROTECTED] wrote: Darren, Try assigning a line-height

RE: [WSG] Centering all items in a li

2008-05-18 Thread Darren Lovelock
Cant set a height on the li, tried it though to see what would happen and it didnt work. Playing with line-height isnt the right way to fix this. Thanks anyway. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Viable Design Sent: 18 May 2008 14:24 To:

RE: [WSG] Centering all items in a li

2008-05-18 Thread Darren Lovelock
Here's a example of what I'm doing http://www.munkyonline.co.uk/test.html I want the li's to behave the same as table cells set with valign:middle. I've had to float the li's left instead of displaying them inline otherwise they stack on top of each other in a mess! I suppose looking at it I