Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block
Author Message
catweazle
Regular
Regular


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

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

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!

_________________
Regards,
Catweazle. 
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

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.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
catweazle
PostPosted: Thu Feb 07, 2008 10:40 am Reply with quote

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
 
Gremmie
PostPosted: Thu Feb 07, 2008 12:04 pm Reply with quote

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©