vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   CSS : <ul> object placement, list horizontal instead of vertical - solved!!! (https://vborg.vbsupport.ru/showthread.php?t=236335)

Vaupell 02-19-2010 05:22 PM

CSS : <ul> object placement, list horizontal instead of vertical - solved!!!
 
Found a great piece of code, i wanted to reuse
and was working on it, but i need to move the links
in two rows,
as if in a table..

as this :

Code:

<tr><td>link1</td><td>link2</td><td>link3</td><td>link4</td></tr>
<tr><td>link5</td><td>link6</td><td>link7</td><td>link8</td></tr>

But i cant make it line up like that, it only wants to list vertical..

code ive found is here : http://www.alistapart.com/articles/taminglists/#
about 85% down the page, you will notice the blue menu.

i have the excakt same code, with minor styling changes, such as colors,borders etc.

but i need to reformat it like the table above, without using tables :D

any suggestions ?

--------------- Added [DATE]1266608148[/DATE] at [TIME]1266608148[/TIME] ---------------

CSS :

Code:

#button {
        width: 10em;
        padding: 0 0 0 0;
        margin-bottom: 0em;
        font-family: 'Trebuchet MS', 'Lucida Grande',
          Verdana, Lucida, Geneva, Helvetica,
          Arial, sans-serif;
        background-color: #90bade;
        color: #333;
        }
        #button ul {
                margin: 0;
                padding: 0;
                border: none;
                }
               
        #button li {
                margin: 0;
                }
#button li a {
                display: block;
                padding: 5px 5px 5px 0.5em;
                border-left: 10px solid #1958b7;
                border-right: 10px solid #508fc4;
                background-color: #2175bc;
                color: #fff;
                text-decoration: none;
                width: 100%;
                }

        html>body #button li a {
                width: auto;
                }

        #button li a:hover {
                border-left: 10px solid #1c64d1;
                border-right: 10px solid #5ba3e0;
                background-color: #2586d7;
                color: #fff;
                }

HTML :
Code:

<div id="button">
<ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">Forum</a></li>
        <li><a href="#">Download</a></li>
        <li><a href="#">Products</a></li>
        <li><a href="#">Blogs</a></li>
        <li><a href="#">&nbsp;</a></li>
        <li><a href="#">Links</a></li>
        <li><a href="#">External</a></li>

</ul>

--------------- Added [DATE]1266608660[/DATE] at [TIME]1266608660[/TIME] ---------------

Sorta solved, NOT THE BEST solution but it works..

Code:

<div id="button"><table width="600"><tr>
<ul>
<td width="25%">        <li><a href="#">Home</a></li></td>
<td width="25%">  <li><a href="#">Forum</a></li></td>
<td width="25%">        <li><a href="#">Download</a></li></td>
<td width="25%">        <li><a href="#">Products</a></li></td></tr>
<tr>
<td width="25%">        <li><a href="#">Blogs</a></li></td>
<td width="25%">        <li><a href="#">&nbsp;</a></li></td>
<td width="25%">        <li><a href="#">Links</a></li></td>
<td width="25%">        <li><a href="#">External</a></li></td></tr>
</ul>
</table>
</div>



All times are GMT. The time now is 05:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01097 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete