Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 17th, 2006, 09:05 AM
Authorized User
 
Join Date: Jan 2006
Location: , , .
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

  #2 (permalink)  
Old February 17th, 2006, 10:28 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
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.

  #3 (permalink)  
Old February 23rd, 2006, 04:14 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 5 Times in 5 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
  #4 (permalink)  
Old December 4th, 2012, 04:49 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
 


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
border to button rupal .NET Framework 2.0 1 November 15th, 2008 07:35 AM
div within a div and inherting the height brettdavis4 CSS Cascading Style Sheets 1 January 23rd, 2007 08: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 04:27 PM



All times are GMT -4. The time now is 06:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.