Dotted Lines in Tables

This is a discussion on "Dotted Lines in Tables" within the Web Page Design section. This forum, and the thread "Dotted Lines in Tables are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 26th, 2005, 09:06
Junior Member
Join Date: Dec 2004
Location: Lyneham, Wiltshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Dotted Lines in Tables

Hi
I am just considering a CSS style to make my website a lot easier to control in appearance, setup and altering.
I am interested in a nav menu that has a vertical listing with each line separated with a dotted line, background light blue and when hover over font changes color
Is there a simple attribute or style that will achieve my aim
An example of what I am trying to achieve can be found on http://www.moneyworld.co.uk/

  #2 (permalink)  
Old May 26th, 2005, 12:05
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
You need to set css properties for a:link and a:hover

For dotted lines use something like

Code: Select all
border-top: 1px dotted fuchsia

Check this out: http://www.hotdesign.com/seybold/index.html

Hope this helps
  #3 (permalink)  
Old May 26th, 2005, 12:28
Junior Member
Join Date: May 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
It is not complicated:

your menu should be a unordered list, and the list entries will be your menu items:

Code: Select all
<div id="menu">
   <ul>[*]Menu item 1[*]Menu item 2[*]Menu item 3[*]Menu item 4[/list]</div>
now add the following style:
Code: Select all
#menu {
	width: 200px;
	float: left;
	background: #00CCFF;
}

#menu ul {
   margin: 0px;
   padding: 0px;
   list-style-type: none;
   font: 12px/18px Arial, Verdana, sans-serif;
}

#menu li {
	border-bottom: 1px dotted #000000;
	height: 25px;
	text-indent: 10px;
	padding-top: 8px;
}

#menu ul a {
   display: block;
}

#menu ul a:link, #menu ul a:visited {
	color: #000000;
	text-decoration: none;
}

#menu ul a:hover {
   color:#006600;
   text-decoration: underline;
}
this will create a vertical menu floating on the left side of the page.

The effect on the site you provided was made by using the image of a dotted line as a background image docked to the bottom of the list item:

Code: Select all
li {
    background-image: url(/images/dotted_line.gif);
    background-repeat: repeat-x;
    background-attachment: scroll;
    -x-background-x-position: center;
    -x-background-y-position: bottom;
}
  #4 (permalink)  
Old May 27th, 2005, 07:13
Junior Member
Join Date: Dec 2004
Location: Lyneham, Wiltshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
many thanks you to both, great stuff,
But as an final request,
1. How do you get the a title inserted for each section displaying in a slightly different format ie bold, slightly bigger and different color
I believe that a little css trick should be able to get this but all I end up with is the title is the same size as the rest.
2. I have altered my text to show links - blue hover - red
but would like the visited links to reappear blue any ideas on how to achieve this

thanks again
rgds
andy
  #5 (permalink)  
Old May 27th, 2005, 09:31
Reputable Member
Join Date: May 2005
Location: Sheffield
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
ccs styles for

Code: Select all
a:visited

a:active
  #6 (permalink)  
Old May 29th, 2005, 20:53
Junior Member
Join Date: Dec 2004
Location: Lyneham, Wiltshire
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
thanx
andy
Closed Thread

Tags
dotted, lines, tables

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Site looks good in FF but has lines in IE rocket468 Web Page Design 2 Oct 28th, 2006 21:58
Dotted underlines not working timmytots Web Page Design 1 Nov 25th, 2005 10:37
Dividing lines? joel Databases 0 Nov 3rd, 2005 19:46
Dotted underlines for my links CherishedSites Web Page Design 4 Apr 6th, 2005 13:26
curved lines gwx03 Graphics and 3D 5 Jun 1st, 2004 14:45


All times are GMT. The time now is 13:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43