Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 11-22-2003, 11:43 AM   #1 (permalink)
Contributing Member
 
ATLien's Avatar
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
ATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really nice
Send a message via AIM to ATLien Send a message via Skype™ to ATLien
CSS border question?

I wanted to know how to do a css border that would be 1 pixel wide and is #A1A1A1. All the way around. when I used this code, it apeared messed up:
[code:1:25181e7e80]<table width="736" border="1" style="border: solid #A1A1A1 border-width: 1" bgcolor="#ffffff" cellpadding="0" cellspacing="0">[/code:1:25181e7e80]

I also tryed thin in the width, but was still messed up.
Thanks in advanced!!
ATLien is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 11:45 AM   #2 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 4,273
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Use this:

[code:1:1087b9f3b8]<table width="736" border="0" style="border: 1px solid #A1A1A1" bgcolor="#ffffff" cellpadding="0" cellspacing="0">[/code:1:1087b9f3b8]
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 11:46 AM   #3 (permalink)
SN3
Senior Member
 
SN3's Avatar
 
Join Date: 10-13-03
Location: Work, USA
Posts: 2,796
iTrader: 0 / 0%
Latest Blog:
None

SN3 is just really niceSN3 is just really niceSN3 is just really niceSN3 is just really niceSN3 is just really niceSN3 is just really niceSN3 is just really niceSN3 is just really niceSN3 is just really niceSN3 is just really niceSN3 is just really nice
Send a message via AIM to SN3 Send a message via Yahoo to SN3
do you need to put a ; after the 1"?
SN3 is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 11:47 AM   #4 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 4,273
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Not sure if you have to, but just in case:

[code:1:674aedea69]<table width="736" border="0" style="border: 1px solid #A1A1A1;" bgcolor="#ffffff" cellpadding="0" cellspacing="0">[/code:1:674aedea69]
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 11:58 AM   #5 (permalink)
Senior Member
 
Join Date: 10-13-03
Posts: 220
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
Quote:
do you need to put a ; after the 1"?
You don't have to if it's the last thing that you have in that selector.

For example, you do have to put one at the end of the font-family definition here:

[code:1:09c89b642f]
.annoying {font-family: arial; color: 00ff00;}
[/code:1:09c89b642f]

But you don't have to put one after the background definition in the following example:

[code:1:09c89b642f]
body {background: #ffffff}
[/code:1:09c89b642f]

Although, it is a good idea to put a semi-colon after everything incase you decide to add onto it, since it's really easy to forget to add it when you put more stuff in there.

Sorry, I'm bored.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 12:07 PM   #6 (permalink)
Contributing Member
 
ATLien's Avatar
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
ATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really nice
Send a message via AIM to ATLien Send a message via Skype™ to ATLien
Quote:
Originally Posted by Jazzee
Use this:

[code:1:15b71fd5fa]<table width="736" border="0" style="border: 1px solid #A1A1A1" bgcolor="#ffffff" cellpadding="0" cellspacing="0">[/code:1:15b71fd5fa]
nope, thats for the help, but didn't work.
ATLien is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 12:12 PM   #7 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 4,273
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
That has to work. That is the code. Works for me
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 12:19 PM   #8 (permalink)
Senior Member
 
Join Date: 10-13-03
Posts: 220
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
Try it with an embedded style sheet like this:

[code:1:cccad6d51e]
<style type="text/css">
table {
border: 1px solid #A1A1A1;
}
</style>
[/code:1:cccad6d51e]

And, if you're trying to make a border around the table AND the cells in the table then add this to the style above:

[code:1:cccad6d51e]
td {
border: 1px solid #A1A1A1;
margin: -1px 0 0 -1px;
}
[/code:1:cccad6d51e]

The margins keep the border from doubling up.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 12:32 PM   #9 (permalink)
Contributing Member
 
ATLien's Avatar
 
Join Date: 10-13-03
Location: Atlanta, GA
Posts: 1,135
iTrader: 0 / 0%
ATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really niceATLien is just really nice
Send a message via AIM to ATLien Send a message via Skype™ to ATLien
I fixed it, I embedded it in CSS as a class, then I had to delete the border=1 from the table.
ATLien is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 06:23 PM   #10 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,468
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to beholdLazyJim is a splendid one to behold
Send a message via MSN to LazyJim
"I had to delete the border=1 from the table"
that was probably the bit that did it
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 07:27 PM   #11 (permalink)
Senior Member
 
Join Date: 10-13-03
Posts: 220
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
I thought that it was already taken out when I posted, since he had border="0", so I thought that the inline style was the problem.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 07:33 PM   #12 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 4,273
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Quote:
Originally Posted by Distorted
I thought that it was already taken out when I posted, since he had border="0", so I thought that the inline style was the problem.

I had border="0". He had border="1".
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-22-2003, 07:34 PM   #13 (permalink)
Senior Member
 
Join Date: 10-13-03
Posts: 220
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
Oh, I see.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with CSS, adding a border CircleOfLinks Coding Forum 6 12-12-2007 06:53 AM
Adding a border DarrenC Graphic Design Forum 7 05-30-2006 02:27 PM
How to add border in Dreamweaver minbak Graphic Design Forum 2 03-16-2006 06:33 AM
How do you make a border? TeKBuzz Graphic Design Forum 9 03-15-2005 08:46 PM
Border Around This Text With Css mortgage-pro-seo Coding Forum 3 10-20-2004 11:59 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 09:54 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.