Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
  #1  
Old 02-19-2010, 05:22 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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

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>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03198 seconds
  • Memory Usage 2,161KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete