Solved

How to have a moving border aorund a block of text

Posted on 2009-04-03
6
1,522 Views
Last Modified: 2012-05-06
Hello Experts,
i have a div tag with some block of text( my website is build using asp.net 2.0 and C#). i have a css class for the div tag like below in the code

now i want to have a border around the block of text, and i want this text to stand out( eye catching). the stand out part is very important , i want in such a way that no one misses it but that the same time i dont want it to be too gaudy or ugly.

i was wondering if there is a way to make the border flow or move around the block of text ( almost like marquee light) .
is there anyway to acheive this. i am not really interested in javascript because the webpage is a secured one(https) and is a part of shopping cart. i have tried something like this but the problem is the border does not moving( which i know that it wont with the CSS i used), it only has a different border-style for top, left, bottom, right. All i want is even if i can make the dotted and dashed lines move or swap in regular interval.

Any advice or suggestion is highly appreciated.
Thanks



div id="msg1" class="message">
       To insure delivery on in stock items placed online between<br />April 4 and by 1 pm EST April 9, please call us at 1-800-000-0000<br /> for rush delivery options.  
</div>
 
the css  class message is 
 
.message
{
     color: #400000;
     font-size: 9pt;
     border-left-width: 4px;
     border-left-style: dotted;
     border-left-color: Blue;
     border-top-width: 4px;
     border-top-style: dashed;
     border-top-color:Gray;
     border-right-width: 4px;
     border-right-style: dotted;
     border-right-color: Blue;
     border-bottom-width: 4px;
     border-bottom-style: dashed;
     border-bottom-color:Gray;
     border-spacing : 4px;
   
}

Open in new window

0
Comment
Question by:niceoneishere
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 24060486
You could use an animated gif as background. If only the edges of the gif are animated and you give the div an amount of padding (so the text is within the quite center of the animated gif).
0
 
LVL 1

Author Comment

by:niceoneishere
ID: 24060504
Sir can you tell me where i can find a sample or an example of what you have suggested
Thanks
0
 
LVL 28

Accepted Solution

by:
sybe earned 500 total points
ID: 24060616
I haven't seen it before. But it occurred to me a nice and simple solution.

While searching the internet for an example (surely I am not the first to come up with this), I found another url which might interest you:

http://www.pixelphase.com/div1.html

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:niceoneishere
ID: 24060990
Bravo!!! Thats excatly what i was looking for but the div1.gif is way too big of a image. It wont let me resize :(( . i wanted the size to be around 350px by 50 px.
any suggestions sir. You have been great in helping me out
Thanks
0
 
LVL 1

Author Comment

by:niceoneishere
ID: 24063348
Thanks i got it working. You are the man!!!
Appreciate it
0
 
LVL 1

Author Closing Comment

by:niceoneishere
ID: 31566252
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Editing .asp website 5 33
Displaying Text in Columns in HTML 3 32
center text in div with CSS3 2 30
Phone number mask 4 14
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question