CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 22nd, 2012, 09:48 AM
STLbhoy STLbhoy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 27 STLbhoy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 56 m 13 sec
Reputation Power: 0
Top and bottom clashing with left and right borders

I'd like my navigation bar to have an outer border that is a different color and width from the separators inside. I could do this by have a wrapper div but I'm trying to keep those to a minimum. So right now I have six nav buttons that look like so:

Code:
.nav_item{

	position:relative;
	padding:5px;
	min-width:123px;
	background-color:#000080;
	color:#BABABA;
	border-top:5px solid #0000FF;
	border-bottom:5px solid #0000FF;
	border-left:2px solid #BABABA;
	border-right:2px solid #BABABA;
	border-collapse:collapse;
	text-align:center;
	float:left;
	font-style:italic;

}


It lines up just the way it should and looks perfect but the gray border-lefts and border-rights hit the blue border-tops and border-bottoms and create a weird effect where they seem to split about 10 pixels between them. Any one know how I can make it so the blue border dominates over the gray?

Reply With Quote
  #2  
Old June 28th, 2012, 10:43 AM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 40 sec
Reputation Power: 4192
The only solutions that I'm aware of to avoid the way border corners work is to apply borders to two different elements or to find some other way of achieving the look of a border. Perhaps you could fake some of the borders by using CSS3 linear gradients (which won't work in IE versions before 10 in this case).
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.

Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

Remember people spend most of their time on other people's sites (so don't violate web design conventions).

Last edited by Kravvitz : June 28th, 2012 at 10:45 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Top and bottom clashing with left and right borders

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap