Webmaster Forum

Sponsored Reviews   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 12-05-2007, 02:16 AM   #1 (permalink)
Contributing Member
 
Join Date: 10-08-06
Location: Sydney
Posts: 130
iTrader: 0 / 0%
Latest Blog:
None

CircleOfLinks is an unknown quantity at this point
Need help with CSS, adding a border

Hey guys,

I've just purchased a template and I need to add a border to the styles.css, im not familiar with it, can someone help? I've attached the actull contects of style.css. I want the border to be in red and have rounded edges, I want the border to be the out side of the site.

Can any one help?

here is the code

//////////////////////////////////////////////


td, table{
font-family:verdana;
font-size:9px;
vertical-align:top;
line-height:12px;
color:#7F7F7F;

}


form { margin:0px; padding:0px}
body { margin:0px; padding:0px; background-color: #FFFFFF}

a { color:#E93400; text-decoration:none}
a:hover{ text-decoration:underline}

span a { color:#E93400; text-decoration:underline}
span a:hover{ text-decoration:none}

.list ul{margin:0px; padding:0px; list-style:none; line-height:19px;}
.list ul li{ background:url(images/list_marker.gif) no-repeat left top; padding:0 0 0 10px}
.list ul li a{ color:#E93400; text-decoration:underline}
.list ul li a:hover{text-decoration:none}

.policy{ color:#7F7F7F}
.policy a{ color:#000000; text-decoration:none}
.policy a:hover{ text-decoration:underline}

span{ color:#000000}

strong a{ font-size:10px}

strong{ font-size:10px}
b{ color:#E93400}

.form input {
width:191px;
height:21px;
font-family:verdana;
font-size:9px;
color: #7F7F7F;
padding:2 0 0 6px;
border-color:#D5D5D5;
border-style:solid;
border-width:1px;
background-color:#F8F8F8
}

.form textarea {
width:191px;
height:102px;
font-family:verdana;
font-size:9px;
color:#7F7F7F;
overflow:hidden;
padding:2 0 0 6px;
border-color:#D5D5D5;
border-style:solid;
border-width:1px;
background-color:#F8F8F8
}

////////////////////////////

thanks heaps
CircleOfLinks is online now  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 12-05-2007, 03:23 AM   #2 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 358
iTrader: 0 / 0%
Latest Blog:
None

Boogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebody
Erm, the rounded edge thing is usually a picutre mate. Therefore you do all the work for it in photoshop or something of the like and then save it as a jpeg/gif and then load in the image in an element such asa <div></div>

Check here for an example. BUT DO NOT use tables like this guy does, instead use your imagination and convert it to <div></div>'s!

HTH's.

Boog's.
__________________
Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-12-2007, 02:31 AM   #3 (permalink)
v7n Mentor
 
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,379
iTrader: 1 / 100%
Latest Blog:
None

Jesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to behold
Send a message via MSN to Jesse Vlasveld Send a message via Yahoo to Jesse Vlasveld
Here are some examples of ways to get rounded corners with css.
There is no 'border' element which let's you create a rounded border, so something like this is definately the way to go.
Jesse Vlasveld is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-12-2007, 02:52 AM   #4 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 358
iTrader: 0 / 0%
Latest Blog:
None

Boogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebody
Quote:
Here are some examples of ways to get rounded corners with css.
There is no 'border' element which let's you create a rounded border, so something like this is definately the way to go
Forgive me, but i think that's far too much styling to get rounded borders. I can do the same thing in about 100x less lines of code!

HTML:
Code:
<div><img src="yourtoproundedcorners.gif/jpg" alt="" /></div> <div class="middlebackground">CONTENT IN HERE</div> <div><img src="yourbottomroundedcorners.gif/jpg" alt="" /></div>
CSS:
Code:
.middlebackground{background: url(yourimagepath/bg.gif/jpg) repeat-y;}
There done. and it works in all browsers too, this is the method i use.

I'll admit it has a draw back and that's that you have to add padding/margins to get the content to sit right- but not always, it depends what your displaying within the content.

IMO you're just going to get people copying that code and not really knowing what it's doing. There's a lot of CSS styling there that could become useless for browsers like FF/IE when they update their schemas and then the CSS requirements are different etc...

Just what i think!

EDIT:
P.S. just want to say though, for those that take the time to read and understand what jesse posted, then it's a really nice technique and could make you understand some CSS techniques better. Thanks for the link, Jesse!
Boog's
__________________
Price is what you pay... Value is what you get.

Last edited by Boogle : 12-12-2007 at 03:03 AM.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-12-2007, 05:56 AM   #5 (permalink)
v7n Mentor
 
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,379
iTrader: 1 / 100%
Latest Blog:
None

Jesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to behold
Send a message via MSN to Jesse Vlasveld Send a message via Yahoo to Jesse Vlasveld
It's more styling yes.. but it's a technique that doesn't require any imaging, which could be very usefull in particular cases. And something I personally prefer.
Ofcourse using images is a method of achieving about the same result.

And about people just copying the code and saving themselves the whole learning proces.. You're right, there will probably be 75% that will be lazy and copy and paste the codes and get exactly the same result as cssplay, however if they want to adjust anything they will have to look into the code and they will probably mess everything up because they don't have the faintest clue about what they are doing.
I just linked to this method because I think it's pretty awesome, and in my case a pretty good learning experience.

Quote:
Originally Posted by Boogle View Post
Forgive me, but i think that's far too much styling to get rounded borders. I can do the same thing in about 100x less lines of code!

HTML:
Code:
<div><img src="yourtoproundedcorners.gif/jpg" alt="" /></div> <div class="middlebackground">CONTENT IN HERE</div> <div><img src="yourbottomroundedcorners.gif/jpg" alt="" /></div>
CSS:
Code:
.middlebackground{background: url(yourimagepath/bg.gif/jpg) repeat-y;}
There done. and it works in all browsers too, this is the method i use.

I'll admit it has a draw back and that's that you have to add padding/margins to get the content to sit right- but not always, it depends what your displaying within the content.

IMO you're just going to get people copying that code and not really knowing what it's doing. There's a lot of CSS styling there that could become useless for browsers like FF/IE when they update their schemas and then the CSS requirements are different etc...

Just what i think!

EDIT:
P.S. just want to say though, for those that take the time to read and understand what jesse posted, then it's a really nice technique and could make you understand some CSS techniques better. Thanks for the link, Jesse!
Boog's
Jesse Vlasveld is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-12-2007, 06:33 AM   #6 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 358
iTrader: 0 / 0%
Latest Blog:
None

Boogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebody
Yes i agree with what you say, I have tried that technique this morning and toyed with it a bit, and it's actually a nice attractive, clean looking technique, so thanks for that!

Boog's
__________________
Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 12-12-2007, 06:53 AM   #7 (permalink)
v7n Mentor
 
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,379
iTrader: 1 / 100%
Latest Blog:
None

Jesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to behold
Send a message via MSN to Jesse Vlasveld Send a message via Yahoo to Jesse Vlasveld
No problem at all, isn't css awesome
Jesse Vlasveld is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > 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

vB 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
Adding a border DarrenC Graphic Design Forum 7 05-30-2006 01: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 10:59 AM
CSS border question? ATLien Coding Forum 12 11-22-2003 07:34 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:13 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.