473,382 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Curved Border with an image in HTML

How do I write text inside a border made up of image while preparing newsletter, I know its easy in CSS3 but as its a HTML Newsletter all email clients doesn't support the curved effect, I know that it has 4 images but how do I joint them like the one in the attachment.
Attached Images
File Type: png border.png (18.9 KB, 175 views)
Jan 17 '13 #1
3 1744
Anas Mosaad
185 128KB
There are more than one way to do the rounded corners. The simplest one is to use the background image as is in the background. In addition to its simplicity, it has a performance gain. The size of the file is not an issue compared to the combined size of four images but you eliminated 3 additional requests to the server.

Another simple way would be to have the upper and lower parts of the image. For example, if you have a portlet like component. You'd assign the background if the title as the top image and make it non-repeatable and aligned top. And the bottom image as the background of the container div aligned bottom and non-repeatable.

A complex one would be stack four transparent DIVs without margins or padding and assign the background of each one to a corner without a repat.

In the second and the third, you may have a border with the same spcecs as the rounded corner. This is not an easy ride in case 3.
Jan 17 '13 #2
Can I see a example.
Jan 21 '13 #3
Anas Mosaad
185 128KB
You can find the first example at nakheel dot com. An article describing the last technique at http://www.sitepoint.com/css-round-c...-boxes-curves/
Jan 25 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Erik | last post by:
Hi all, When running my small windows forms app on a windows XP machine after a small time running the upper (new style nice curved border) winks out of existance leaving a transparent window...
3
by: Jay | last post by:
I need help!! I'm using IE 6 and look at the bottom-left corner of the image border: http://pages.infinit.net/jaylac/image.html It does that when i use border="1" or any css border style. I...
1
by: Desigan Chinniah | last post by:
I am presently trying to display a list of items INLINE using an image as a seperator..... and having difficulties.... See below for 3 seperate sets of html and css files. Each set does something...
1
by: Trent L | last post by:
Hello, I'm having a problem where a style for a <a> tag isn't working in IE: border : 1px solid red; If you use my code below, you'll see what I mean. In IE6 on WinXP, I'm not seeing a red...
5
by: http://links.i6networks.com | last post by:
I need to delay something either an image or a table from loading for 2-5 seconds. So far I have not find a good method. I need the rest of the page, even the codes after the delayed image, to be...
9
by: Oliver Block | last post by:
Hi, what is the most elegent way to center an image inside a web page. The image is radomly chosen by a cgi script may be 300x400 or 400x300. Are there any alignment commands for images?
59
by: phil-news-nospam | last post by:
In followups by Brian O'Connor (ironcorona) to other posts, he repeats the idea that using tables in CSS is not something that should be done because IE doesn't support it. Of course I'm not happy...
5
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
1
by: Linda Liu[MSFT] | last post by:
Hi Moondaddy, I downloaded your sample project and run it on my machine. I did see the problem on my side. The image drawn in the Button is not as clear as that one drawn in the Image control. ...
3
by: seegoon | last post by:
Hi guys. I'd like to use an image as my border on just the right side of a div, to create an arrow shape on a 'continue' link. I've created the image to use and tried to code it myself, but failed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.