Overlay two borders

This is a discussion on "Overlay two borders" within the Web Page Design section. This forum, and the thread "Overlay two borders are both part of the Design Your Website category.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 1st, 2006, 00:20
Junior Member
Join Date: Feb 2006
Location: Florence - Italy
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gwayn Send a message via MSN to Gwayn
Overlay two borders

I need to overlay two borders:

_______________________
HTML: Select all
.navlist
{
margin: 0px 0px 0px 0px;
background-color: black;
width: 8.50em;
padding-bottom: 5em;
border-right: 0.50em solid red;
}

.navlist li a
{
display:block;
background-color: blue;
padding: 0.0em 0.0em 0.0em 1.0em;
border-right: 0.50em solid red;
}
_________________________


Well i need to overlay them cause in a .navlist li a:hover Only the <li> <a>
border will have to change color. Anyway with this code i got two borders
side by side, like:
.navlist li a ------
.navlist _____

But in vertical ... well how to overlay them?
Reply With Quote

  #2 (permalink)  
Old Feb 1st, 2006, 02:09
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Overlay two borders

50 points for confusing me. Can you post a link or your source code?
Reply With Quote
  #3 (permalink)  
Old Feb 1st, 2006, 08:24
Junior Member
Join Date: Feb 2006
Location: Florence - Italy
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gwayn Send a message via MSN to Gwayn
Re: Overlay two borders

Quote:
Originally Posted by herkalees
50 points for confusing me. Can you post a link or your source code?
Thanks for the points

Well ill try to be more explicative:

HTML: Select all
<ul class="navlist">
<li><a href="#"><img src="X.gif"/></a></li>
<li><a href="#"><img src="Y.gif"/></a></li>
<li><a href="#"><img src="Z.gif"/></a></li>
</ul>

PHP: Select all

.navlist
{
margin0px 0px 0px 0px;
background-colorblack;
width8.50em;
padding-bottom5em;
border-right0.50em solid red
}
 
.
navlist li a
{
display:block;
background-colorblue;
padding0.0em 0.0em 0.0em 1.0em;
border-right0.50em solid red;


Ok Now...







How i can get this?

Last edited by Gwayn; Feb 1st, 2006 at 08:28.
Reply With Quote
  #4 (permalink)  
Old Feb 1st, 2006, 14:36
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Overlay two borders

Below is different CSS, but it does what you want. It removed the background right-side border from the <ul>, and puts it into all anchors.

As far as I know, a border defined for a parent element (the <ul> in your case) will always be outside any child elements (the <li> in your case).

This method below just sticks the border on the same element, but changes it based on user actions.

Code: Select all
.navlist {
	width: 8.50em;
}
 .navlist li a {
	display: block;
	border-right: 0.50em solid blue;
}
 .navlist li a:hover {
	border-right: 0.50em solid green;
}
Reply With Quote
  #5 (permalink)  
Old Feb 1st, 2006, 18:19
Junior Member
Join Date: Feb 2006
Location: Florence - Italy
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gwayn Send a message via MSN to Gwayn
Re: Overlay two borders

Quote:
Originally Posted by herkalees
Code: Select all
.navlist {
    width: 8.50em;
}
 .navlist li a {
    display: block;
    border-right: 0.50em solid blue;
}
 .navlist li a:hover {
    border-right: 0.50em solid green;
}
Doesn't work.
This apply the border only at the link element, it means that the border appears broken: ----
Like the ".navlist li a" of the image 1, and then changes color when mouse over... but i need a unique continue border.

I could put empty list elements among the list elements that contain the links but i always get that empty black space among the list elements and i cannot eliminate them, i tried with all the attributes [border, padding, margin] in all elements [div, ul, li, li a] the black space still stays...

Any ideas?
Reply With Quote
Reply

Tags
overlay, two, borders

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
(flash) Texture Overlay joshlindem Flash & Multimedia Forum 3 May 27th, 2008 20:59
'Sample' image overlay advice needed Demon Templates Graphics and 3D 5 Mar 9th, 2007 11:49
text overlay saltedm8 Flash & Multimedia Forum 2 Aug 26th, 2006 05:22
Help - Flash overlay (Errm I think thats what it's called) Micky-D Flash & Multimedia Forum 5 Jun 17th, 2005 17:51
VS.NET, TextBox, overlay, DataGrid Smokie ASP.NET Forum 10 Jul 27th, 2004 12:17


All times are GMT. The time now is 03:20.


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