Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-15-2007, 02:27 PM A simple question
Cheshire_cat's Avatar
Are you watching closely?

Posts: 1,428
Name: Phil
Location: Home of the Allman Brothers
Trades: 0
I’m new to web design and I have run into a bit of a snag. I had my site reviewed and one of the tips was that I should put a rounded border instead of a square one. I know I am using tables and not <div>, someone is actually helping me convert it into css. But for now I would still like to but a rounded border around it. I have the image that I want to use, but can anyone tell me the best way to do it. Thanks
__________________
Believe those who are seeking the truth. Doubt those who find it. —André Gide

Please login or register to view this content. Registration is FREE
Cheshire_cat is offline
Reply With Quote
View Public Profile Visit Cheshire_cat's homepage!
 
 
Register now for full access!
Old 05-15-2007, 07:27 PM Re: A simple question
Skilled Talker

Posts: 62
Trades: 0
place the image at the top left of the table, simple?
jameslow is offline
Reply With Quote
View Public Profile
 
Old 05-15-2007, 08:09 PM Re: A simple question
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Phil at the moment the only way to create a rounded border that works in Internet Explorer is to make that border be an image. The simplest way is just create the full rounded border around your current image. You'd want the color outside the image to match the background color the image be against on the page. You could also make the image a transparent gif or png depending on the image and not have to worry about the color outside the border.

Another way is to create an image of just the rounded corner and then use a series of background images along with normal css borders. This method will require a little more knowledge of css. I don't think you'll be able to it with tables.

CSS3 gives the ability to create a rounded border with code alone, but unfortunately it doesn't work in any version of IE at the moment.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-15-2007, 10:34 PM Re: A simple question
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
Here is a cool way to achieve the rounded corner thing without images.

The HTML:


Code:
<div id="round">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div id="content">
<!-- nothing above this -->
Your content in here
<!-- nothing below this -->
 </div>
  <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
 </div>
The CSS:

Code:
div#round{ margin: 0 1%;background: #CCCCCC
}
#content{ margin: 0 1%;background: #CCCCCC
}
b.rtop, b.rbottom{display:block;background: #FFFFFF}
b.rtop b, b.rbottom b{display:block;height: 1px;
    overflow: hidden; background: #CCCCCC}
b.r1{margin: 0 5px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}


__________________
.
Village Idiot

Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 05-16-2007, 12:25 AM Re: A simple question
Cheshire_cat's Avatar
Are you watching closely?

Posts: 1,428
Name: Phil
Location: Home of the Allman Brothers
Trades: 0
I have the image that I want to use but I cannot see it when I put it in the table.
__________________
Believe those who are seeking the truth. Doubt those who find it. —André Gide

Please login or register to view this content. Registration is FREE
Cheshire_cat is offline
Reply With Quote
View Public Profile Visit Cheshire_cat's homepage!
 
Old 05-16-2007, 12:48 AM Re: A simple question
Cheshire_cat's Avatar
Are you watching closely?

Posts: 1,428
Name: Phil
Location: Home of the Allman Brothers
Trades: 0
I can see parts of it but not the whole.
__________________
Believe those who are seeking the truth. Doubt those who find it. —André Gide

Please login or register to view this content. Registration is FREE
Cheshire_cat is offline
Reply With Quote
View Public Profile Visit Cheshire_cat's homepage!
 
Old 05-17-2007, 01:02 AM Re: A simple question
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Sydpix, I stand corrected. I forgot about that method. I saw something similar to it once before and it slipped my mind. Thanks for posting the code.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-18-2007, 12:40 AM Re: A simple question
Cheshire_cat's Avatar
Are you watching closely?

Posts: 1,428
Name: Phil
Location: Home of the Allman Brothers
Trades: 0
That code is not working for me.
__________________
Believe those who are seeking the truth. Doubt those who find it. —André Gide

Please login or register to view this content. Registration is FREE
Cheshire_cat is offline
Reply With Quote
View Public Profile Visit Cheshire_cat's homepage!
 
Old 05-18-2007, 07:53 AM Re: A simple question
Sydpix's Avatar
Drinker I Smoke

Posts: 424
Name: Denny
Location: In a can...
Trades: 0
Here is a full working page:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
div#round{ margin: 0 1%;background: #CCCCCC
}
#content{ margin: 0 1%;background: #CCCCCC
}
b.rtop, b.rbottom{display:block;background: #FFFFFF}
b.rtop b, b.rbottom b{display:block;height: 1px;
    overflow: hidden; background: #CCCCCC}
b.r1{margin: 0 5px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
-->
</style>
</head>

<body><div id="round">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
<div id="content">
<!-- nothing above this -->
<h2>Your content </h2>
<p>You have a modern house with a small patch of lawn that the builders left as an excuse for a garden. Now it's time to sort it out, but what style should you go for? Carol Bailey takes a look at the options.
  
Lorem epsom ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet epsom sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic epsom amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad epsom valorem. Lorem ipson epsom dolor sic amet sec in consetum nunc ad valorem.
  
Lorem ipson dolor sic amet sec in consetum epsom nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem epsom ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in epsom consetum nunc ad valorem.
  
Lorem ipson dolor sic amet sec in consetum epsom nunc ad valorem.
  
Lorem epsom  ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem.
  
Lorem ipson dolor sic ametepsom  sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet epsom sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. Lorem ipson dolor sic amet sec in consetum nunc ad valorem. 
   <!-- nothing below this -->
 </p>
</span></div>
  <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
 </div>
</body>
</html>
__________________
.
Village Idiot

Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 05-18-2007, 08:37 AM Re: A simple question
Skilled Talker

Posts: 64
Name: Ali R Khan
Trades: 0
Quote:
Originally Posted by Cheshire_cat View Post
I’m new to web design and I have run into a bit of a snag. I had my site reviewed and one of the tips was that I should put a rounded border instead of a square one. I know I am using tables and not <div>, someone is actually helping me convert it into css. But for now I would still like to but a rounded border around it. I have the image that I want to use, but can anyone tell me the best way to do it. Thanks
i think it is not a simple question
because i don't know that........
__________________

Please login or register to view this content. Registration is FREE
| Join me in a Journey To Financial Freedom and Happy Living. Ali R. Khan
futurex is offline
Reply With Quote
View Public Profile Visit futurex's homepage!
 
Old 05-18-2007, 01:32 PM Re: A simple question
Cheshire_cat's Avatar
Are you watching closely?

Posts: 1,428
Name: Phil
Location: Home of the Allman Brothers
Trades: 0
got it. thanks.
__________________
Believe those who are seeking the truth. Doubt those who find it. —André Gide

Please login or register to view this content. Registration is FREE
Cheshire_cat is offline
Reply With Quote
View Public Profile Visit Cheshire_cat's homepage!
 
Reply     « Reply to A simple question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32398 seconds with 12 queries