Wrox Programmer Forums
|
BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3
This is the forum to discuss the Wrox book Beginning CSS: Cascading Style Sheets for Web Design by Richard York; ISBN: 9780764576423
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 17th, 2006, 10:05 AM
Authorized User
 
Join Date: Jan 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Div Border Property

Just a quick question that hopefully someone can answer. I am wondering if there is a way to specify that certain portions of a Div border can be edited? I more specificaly want a top border removed from one of my div columns. Thanks

 
Old February 17th, 2006, 11:28 AM
Registered User
 
Join Date: Jan 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Though relatively new to CSS Keith, I'll take a shot at this and say that you need to do a border style similar to this.

div {
border-top: none;
border-right: 1px solid black;
border-bottom: 1px solid black;
border-left: 1px solid black;
}

See chapter 10 p260.

You can also control other properties of each side independently.

 
Old February 23rd, 2006, 05:14 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

That's spot on, discgolfer.

Another way to do it would be:

div {
   border: 1px solid black;
   border-top: none;
}

Regards,
Rich

--
[http://www.smilingsouls.net]
Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
 
Old December 4th, 2012, 05:49 AM
Registered User
 
Join Date: Dec 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change div border width, style and color.

to use css style with border

div {
border :width style color;
}

which apply all these properties for all four div borders.
or you can specify some properties for each border, ex:

div {
border-top:width style color;
}

or more specify each property for each border, ex:

div {
border-top-width: width;
}

for more information
Change div border width, style and color.





Similar Threads
Thread Thread Starter Forum Replies Last Post
border to button rupal .NET Framework 2.0 1 November 15th, 2008 08:35 AM
div within a div and inherting the height brettdavis4 CSS Cascading Style Sheets 1 January 23rd, 2007 09:59 AM
Border help! Rodney Dreamweaver (all versions) 8 July 20th, 2006 03:34 PM
border around a report stoneman Access 1 June 22nd, 2005 06:14 AM
Table and border mani_he Javascript 6 January 4th, 2005 05:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.