Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

HTML & CSS css table - two rows - encyclopedia style

nba-com

Coder
Hello, I have bought wordpress encyclopedia plugin and want to make it simple and easy as you can see on this picture . They dont provide much customization so i would to make it look like this


encyclopedia.png



Code:
.styled-table {
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    font-family: calibri;
    min-width: 400px;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

Code:
<table class="styled-table" style="height: 308px;" width="1552">
<thead>
<tr>
<th style="text-align: left;">Name</th>
<th style="text-align: left;"></th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Dom</strong></td>
<td>600</td>
</tr>
<tr class="active-row">
<td><strong>sloužíalskd</strong></td>
<td>§ůlaasdl ůkfů§laskd</td>
</tr>
<!-- and so on... --></tbody>
</table>

( 1,5% CSS skills )

wordpress editor looks like this

wordpress editor.png

And this is result is not as bad :D but when i write longer text in the NAME box, it takes two rows , i dont know ho to format NAME FONT.. its different than others o_O
my try.png
Can you please help me write code for the box as you can see on the top ?
As Im using wordpress theme, there are few css styles already involved. Maybe it would be nice if you use names that cannot exist ;p

I tried.... really..
 
Last edited:

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom