Re: [PHP] Div-element at same vert. position?

2006-03-29 Thread Jochem Maas

can someone nuke this guys addr form the list? pretty please?

[EMAIL PROTECTED] wrote:

Please use [EMAIL PROTECTED] instead of [EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg


- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" 


Sent: Tuesday, March 28, 2006 11:52 PM
Subject: RE: [PHP] Div-element at same vert. position?


[snip]
A. The is a CSS question
2. You didn't provide a way to see it.
III. Using absolute positioning is a bad thing and the left div should
be floated to the left.

Ok, I got your message you all! But I really wanted to do the
postitioning
in PHP with absolute positioning (just for the sakes cause ;-))
[/snip]

While you may be using PHP to output attributes for CSS you are not
doing positioning with CSS.

And your point is?

/Gustav Wiberg

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread tedd

At 2:21 PM -0600 3/28/06, Jay Blanchard wrote:

[snip]
what's wrong with absolute positioning?
[/snip]

Because there is only one absolute; that there are no absolutes.

IE, FF, Opera and others all treat the box model differently.


That's if you use margins and padding. The way I understand it, the 
box model --


http://www.w3.org/TR/REC-CSS2/box.html

-- is problematic because M$ looks at things differently than 
everyone else (i.e., W3C et al) -- which has led to many different 
fixes (hacks), such as:


http://tantek.com/CSS/Examples/boxmodelhack.html

But, if you are trying to absolutely position things, then using 
absolute without padding and margins is the way to go.


For example, I've had a couple of clients who wanted their web sites 
to look exactly like their designers illustrations without any 
alteration or slack whatsoever on any browser. The only way I did it 
was to use absolute positioning.


But, like everything else (including this topic), it has it's place.

tedd

--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jay Blanchard
[snip]
A. The is a CSS question
2. You didn't provide a way to see it.
III. Using absolute positioning is a bad thing and the left div should
be floated to the left.

Ok, I got your message you all! But I really wanted to do the
postitioning 
in PHP with absolute positioning (just for the sakes cause ;-))
[/snip]

While you may be using PHP to output attributes for CSS you are not
doing positioning with CSS. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg


- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" 


Sent: Tuesday, March 28, 2006 10:00 PM
Subject: RE: [PHP] Div-element at same vert. position?


[snip]
I have a code-snippet here:

while ($dbArray = mysql_fetch_array($querys)) {
$dbIDLevel1 = $dbArray["IDLevel1"];
$dbLevel1Name = $dbArray["level1Name"];
$dbFactsLevel1Name = $dbArray["factsLevel1Name"];
$dbFactsPictureLevel1Name = $dbArray["factsPictureLevel1Name"];
?>









   
   
   
   
" to be at the same vertical level as div-element:
"factsmenu_"

Any ideas? (I tried with $yMenu +=(8*intval($nrRows)) with the rule that
any
row is 8 pixels, but this doesn't seem to be true)
[/snip]

A. The is a CSS question
2. You didn't provide a way to see it.
III. Using absolute positioning is a bad thing and the left div should
be floated to the left.

Ok, I got your message you all! But I really wanted to do the postitioning 
in PHP with absolute positioning (just for the sakes cause ;-))


/G

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jay Blanchard
[snip]
 [snip]
what's wrong with absolute positioning?
[/snip]

Because there is only one absolute; that there are no absolutes.

IE, FF, Opera and others all treat the box model differently.
[/snip]

My bad.I should have said that it is a bad idea to use fixed
positioning.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Chrome
Try drag-drop without absolute ;-)

Dan

 
---
http://chrome.me.uk
 

-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED] 
Sent: 28 March 2006 21:21
To: Jochem Maas
Cc: PHP General
Subject: RE: [PHP] Div-element at same vert. position?

[snip]
what's wrong with absolute positioning?
[/snip]

Because there is only one absolute; that there are no absolutes.

IE, FF, Opera and others all treat the box model differently.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ NOD32 1.1459 (20060327) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jay Blanchard
[snip]
what's wrong with absolute positioning?
[/snip]

Because there is only one absolute; that there are no absolutes.

IE, FF, Opera and others all treat the box model differently.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jochem Maas

Jay Blanchard wrote:



A. The is a CSS question


true :-)


2. You didn't provide a way to see it.
III. Using absolute positioning is a bad thing and the left div should
be floated to the left.


what's wrong with absolute positioning?





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread John Nichel

Gustav Wiberg wrote:


The CSS list is down the road a-ways.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Jay Blanchard
[snip]
I have a code-snippet here:

while ($dbArray = mysql_fetch_array($querys)) {
$dbIDLevel1 = $dbArray["IDLevel1"];
$dbLevel1Name = $dbArray["level1Name"];
$dbFactsLevel1Name = $dbArray["factsLevel1Name"];
$dbFactsPictureLevel1Name = $dbArray["factsPictureLevel1Name"];
?>













" to be at the same vertical level as div-element: 
"factsmenu_"

Any ideas? (I tried with $yMenu +=(8*intval($nrRows)) with the rule that
any 
row is 8 pixels, but this doesn't seem to be true)
[/snip]

A. The is a CSS question
2. You didn't provide a way to see it.
III. Using absolute positioning is a bad thing and the left div should
be floated to the left.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg

Hi guys!

I have a code-snippet here:

while ($dbArray = mysql_fetch_array($querys)) {
$dbIDLevel1 = $dbArray["IDLevel1"];
$dbLevel1Name = $dbArray["level1Name"];
$dbFactsLevel1Name = $dbArray["factsLevel1Name"];
$dbFactsPictureLevel1Name = $dbArray["factsPictureLevel1Name"];
?>



align="top" width="200" height="150">







   $sql2 = "SELECT tblevel2catlevel1cat.ForIDLevel1Cat, 
tblevel2catlevel1cat.ForIDLevel2Cat, tblevel2cat.IDLevel2, 
tblevel2cat.level2Name FROM tblevel2catlevel1cat";
   $sql2 .= " LEFT JOIN tblevel2cat ON (tblevel2cat.IDLevel2 = 
tblevel2catlevel1cat.ForIDLevel2Cat)";
   $sql2 .= " WHERE tblevel2catlevel1cat.ForIDLevel1Cat = " . 
safeQuote($dbIDLevel1);

   $querys2 = mysql_query($sql2);

   $nrRows++;
   while ($dbArray2 = mysql_fetch_array($querys2)) {
   $dbIDLevel2 = $dbArray2["IDLevel2"];
   $dbLevel2Name = $dbArray2["level2Name"];
   ?>
   title="">$dbLevel2Name;?>

   
   
   
You'll see that two div-elements are created. I want "rightmenu_$dbIDLevel1;?>" to be at the same vertical level as div-element: 
"factsmenu_"


Any ideas? (I tried with $yMenu +=(8*intval($nrRows)) with the rule that any 
row is 8 pixels, but this doesn't seem to be true)


/G

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php