Recent Topics

1 May 24, 2006 06:38    

Hello,

look at this:

http://www.snigles.de/vote.jpg

I want to have the voting text in the same size than the layout above. How can I shorten the texture?

This is the code to include the voting:

<div class="bSideItem">
<h3>Vote!</h3>
<ul>
<?
include("http://www.snigles.de/skins/kubrick2evo/mini_poll.php");
?> 
</ul>
</div>

2 May 24, 2006 12:22

.p_main{
font-size:80%;
}

¥

3 May 24, 2006 21:05

alright! thanxx that works!

5 May 27, 2006 10:57

but it works only @ iexplorer. with firefox it does´not work :-(

6 May 27, 2006 11:07

Point me to the page where it doesn't work ;)

¥

7 May 27, 2006 12:49

It looks same in IE7 and Firefox and Opera

9 May 27, 2006 20:57

You've got a table inside a <ul> tag. The issue you're up against is that the styling for the table isn't the same as the styling for regular or listed content, plus you'll never validate the way your code is. I would look inside mini_poll.php and get rid of EVERYTHING that makes it have tables. All references to <table> and <tbody> and <tr> and </tr> and </tbody> and </table> shall go. Where it has <td class="p_main"> make it be <li> and where it has </td> make it be </li>. That all by itself (no extra classes required) should fix most of your troubles.

I'll give you an even better idea! Replace this:

<div class="bSideItem">
<h3>Vote!</h3>
<ul>
<?
include("http://www.snigles.de/skins/kubrick2evo/mini_poll.php");
?>
</ul>
</div>


With this:

<div class="bSideItem">
<?php 
include("http://www.snigles.de/skins/kubrick2evo/mini_poll.php");
?>
</div>


(Note that I made your opening php tag say that it is php. It's just better that way is why.)

Now inside mini_poll.php replace the line that makes

<td class="p_top">Welcher Slogan ist Dein Favorit?</td>

with

<h3>Welcher Slogan ist Dein Favorit?</h3><ul>

and then towards the end of that file replace all the stuff that closes all your table with "</ul>".

View your source code to see what is being generated and you'll be able to easily say "aha - I need to change this bit in order to get a nice page display".

Either way you can make your mini poll match the rest of your skin simply by making mini_poll.php match the rest of the includes that b2evolution calls. Tables are icky. Unordered lists are nice.

Hey uh... nice skin ;)


Form is loading...