Re: [WSG] CSS height/padding

2007-08-01 Thread Daniel Kendrick
I agree Al.

Christian its not bad. There are MANY pixel to em calcs online to google it.
:)

--DK

On 8/1/07, al morris [EMAIL PROTECTED] wrote:

 Hi Christian,

 Use option 1 with em units instead of pixels for your top and bottom
 padding. The padding will increase as the text resizes.

 Al

 On 8/1/07, Christian Fagan [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I have previously tried to create a horizontal page navigation with a
  fixed height but there seems to be two distinct problems with the two
  methods that I have used to date.
 
  1) The first method employs top and bottom padding on a elements to
  vertically centre the text within the anchor box. This method works
  fine, until the text is re-sized.
  2) The second method involves declaring a height for the a element but
  then the text is top aligned vertically (looks ugly).
 
  I have also tried declaring top padding combined with a height value to
  lessen the text resize issue but I would like to hear from anyone who
  knows a way to align text vertically, as well as assign a set height to
  elements (particularly a elements in a horizontal nav structure).
 
  Thanks.
 
  --
  Christian Fagan
  Fagan Design
 
  fagandesign.com.au
  [EMAIL PROTECTED]
 
 
 
 
  ***
  List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
  Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
  Help: [EMAIL PROTECTED]
  ***
 
 

 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] Serving Different Content to Returning Visitors

2007-07-27 Thread Daniel Kendrick
Huh...

I had considered using PHP for something similar. I honestly wouldnt have
thought to use it like that. I appreciate it you have given me a great idea.
If it works ill post my results :)


--D

On 7/27/07, Designer [EMAIL PROTECTED] wrote:


  Daniel Kendrick wrote:
  I am curious if there is a way to serve up different pages to
  returning visitors so its different than that of a first time visitor.

 If PHP is an option, you can produce a different 'effect' by having an
 array and randomly selecting the content.  At it's simplest level this
 can just be an image, like this:

 ?php
  $location = array (
 
 array(location='Treyarnon
 Bay', image='treyarnon.jpg'),
 
 array(location='Trevose
 Head', image='trevose.jpg'),
 
 array(location='Padstow',
 image='padstow.jpg'),
 
 array(location='Constantine
 bay', image='constantine.jpg'),
 
 array(location='Showery
 Tor', image='showerytor.jpg'),
 
 array(location='Bedruthan',
 image='bedruthan.jpg'),
 
 array(location='Treyarnon
 Dusk', image='treyarnondusk.jpg'),
 
 array(location='Carnewas',
 image='carnewas.jpg'),

 );

 $numlocations=sizeof($location);
 $row =
 (rand(0,($numlocations-1)));
 $num=$row+1;
 echo img
 src=\openingpage/graphics/.$location[$row][image]
 .\ alt=\\ /p.$location[$row][location]./p;

 ?

 Or you can go completely over the top and have the array consisting of
 as many 'pages' as you like, selecting randomly as above.  You can do
 the latter by linking to pages, by changing the CSS, etc etc.

 It's not perfect of course, but it doesn't use cookies, it doesn't need
 JS, it's simple, and it's robust.

 HTH,
 --
 Bob

 www.gwelanmor-internet.co.uk



 ***
 List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
 Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
 Help: [EMAIL PROTECTED]
 ***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread Daniel Kendrick

Yeah I didnt think so. I knew Id be baking cookies I just was wondering
about a cookieless way or not.

sigh

Alright continuing as planned.

--D

On 7/26/07, Matthew Cruickshank [EMAIL PROTECTED] wrote:


Daniel Kendrick wrote:
 I would like to avoid cookies all together. But if I must I must.


You'll need cookies.

(well you could sort of determine new vistors by IP address but only in
a way that wouldn't be as reliable -- there are many cases of NAT users
sharing a single IP, or with AOL users having their IP change while
browsing and you couldn't detect this).

.Matthew Cruickshank
http://holloway.co.nz/





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

[WSG] Serving Different Content to Returning Visitors

2007-07-26 Thread Daniel Kendrick

I am curious if there is a way to serve up different pages to returning
visitors so its different than that of a first time visitor.

I would like to avoid cookies all together. But if I must I must.

Thanks for any help,

--D


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***