PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
catweazle
Regular
Regular


Joined: Oct 14, 2006
Posts: 60
Location: Norway

PostPosted: Thu Feb 07, 2008 8:31 am Reply with quote Back to top

Hi All!

I have changed the layout for this block quite a bit and have almost got it the way I want. I've used "colspan" to "stretch" the expanded table to use 100% width (as I think that looks alot better). One small problem though is that I can't get the cells of the expanded table to line up with the "corresponding" cells in the header table:

Image

The width of the cells in the header table is: 60%+5%+20%+5%+10%.
I have the same settings for the cells in the expanded table, but that don't seem to do it...

Any suggestions on how to "line up" the cells of these two tables?
I like to have things look symetric and nice,
so any help on this is very much appreciated Smile

I also changed the view of top users (to have more users in one single row):

Image

.. but it really was a pain in the a** to make it show right in both MSIE and FF!
MSIE refuses totally to respond to the <br /> code tags (within the same cell) in that part of the script. Sad

I had to make some changes to the
Code:
if ($showTopPosters==1 OR $showTopPosters==2) {

part of the script so this IF statement will be executed three times:
First time to do <tr><td> get the UserAvatar </td></tr>,
secon time to do <tr><td> get the UserName </td></tr>,
and third time to do <tr><td> get the amount of UserPosts </td></tr>.

Now it finally shows up the right way in both browsers,
- so it was absolutely worth all the hard work Wink

Oh - and don't forget about my first issue, please...
I'm really struggling with that one!!

Thanks alot for your time folks!
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Feb 07, 2008 8:49 am Reply with quote Back to top

Is the header part a separate table from the rest? If so, then I don't think you can get them to line up. They need to be part of the same table for that to happen. I would also not fool around with the width attributes. Use CSS if you have to, you get much more control over tables that way.
View user's profile Send private message
catweazle
Regular
Regular


Joined: Oct 14, 2006
Posts: 60
Location: Norway

PostPosted: Thu Feb 07, 2008 10:40 am Reply with quote Back to top

Thanks alot for your fast reply, Gremmie.

Yes, it's about two separate tables.

If you have two tables beneath each other whithin a third table (both inner tables sized to 100% of the outer table), and you part both inner tables in eg. 3 cells (50%+25%+25%)... - then both those inner tables will be viwed exactly alike!?? I've done other layouts and never come across this as an issue...

Sorry - I'm not very familiar with stylesheets yet Sad
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Feb 07, 2008 12:04 pm Reply with quote Back to top

You'll have better luck if you combine it all into 1 table.

Also, now is a great chance to learn about CSS. Smile It isn't hard. You'll get a lot more control with it.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum