Re: [PHP] Div-element at same vert. position?
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?
[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]; ? div id=factsmenu_?php echo $dbIDLevel1;? name=factsmenu_?php echo $dbIDLevel1;? style=position:absolute; width:250px; height:300px; z-index:?php echo 200 + $dbIDLevel1;?; left: ?php echo $xTextledins + 310;?px; top: ?php echo $yRightmenu;?px; overflow: auto; visibility: hidden p class=textstyleb?php echo $dbLevel1Name;?/bbr img src=pictures/level1/?php echo $dbFactsPictureLevel1Name;? align=top width=200 height=150br ?php echo $dbFactsLevel1Name;?/p /div div id=rightmenu_?php echo $dbIDLevel1;? name=rightmenu_?php echo $dbIDLevel1;? style=position:absolute; width:150px; height:300px; z-index:?php echo 100 + $dbIDLevel1;?; left: ?php echo $xTextledins + 130;?px; top: ?php echo $yMenu;?px; overflow: auto; visibility: hidden p class=textstyle ?php $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]; ? a href=page_productarea2.php?ID=?php echo $dbIDLevel2;? title=?php echo $dbLevel2Name;?font color=#015730?php echo $dbLevel2Name;?/font/abr ?php $nrRows++; } ? /p /div ?php //Here... $yMenu +=(8*intval($nrRows)); } If you don't bother about the database: You'll see that two div-elements are created. I want rightmenu_?php echo $dbIDLevel1;? to be at the same vertical level as div-element: factsmenu_?php echo $dbIDLevel1;? 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
Re: [PHP] Div-element at same vert. position?
Gustav Wiberg wrote: snip 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?
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?
[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?
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?
[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?
- Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED]; PHP General php-general@lists.php.net 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]; ? div id=factsmenu_?php echo $dbIDLevel1;? name=factsmenu_?php echo $dbIDLevel1;? style=position:absolute; width:250px; height:300px; z-index:?php echo 200 + $dbIDLevel1;?; left: ?php echo $xTextledins + 310;?px; top: ?php echo $yRightmenu;?px; overflow: auto; visibility: hidden p class=textstyleb?php echo $dbLevel1Name;?/bbr img src=pictures/level1/?php echo $dbFactsPictureLevel1Name;? align=top width=200 height=150br ?php echo $dbFactsLevel1Name;?/p /div div id=rightmenu_?php echo $dbIDLevel1;? name=rightmenu_?php echo $dbIDLevel1;? style=position:absolute; width:150px; height:300px; z-index:?php echo 100 + $dbIDLevel1;?; left: ?php echo $xTextledins + 130;?px; top: ?php echo $yMenu;?px; overflow: auto; visibility: hidden p class=textstyle ?php $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]; ? a href=page_productarea2.php?ID=?php echo $dbIDLevel2;? title=?php echo $dbLevel2Name;?font color=#015730?php echo $dbLevel2Name;?/font/abr ?php $nrRows++; } ? /p /div ?php //Here... $yMenu +=(8*intval($nrRows)); } If you don't bother about the database: You'll see that two div-elements are created. I want rightmenu_?php echo $dbIDLevel1;? to be at the same vertical level as div-element: factsmenu_?php echo $dbIDLevel1;? 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?
[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?
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?
- Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED]; PHP General php-general@lists.php.net 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