Developing Webs logo
Google
Web DW-Main DW-Photoshop
Visit the message board for solutions or post a question Check out the Classes offered for free at Developing Webs Voice Chat submit a tutorial, resources, article, font for publication consideration and earn a one way link back to your site Get more specifics about the Developing Webs Voice chat room and its room members View the current news at Developing Webs alternative sites which are resources for your d3evelopment needs Join Developing Webs Chat Link to us on your web page to help support this resource! Check out Developing Webs At yahoo groups! Developing Webs Home Adobe Photoshop Tutorials Macromedia Flash Tutorials Jasc Paint Shop Pro Tutorials Adobe Illustrator Animation basics Some Basic PHP tutorials Perl Tutorials HTML Tutorials Cascading Style Sheets javascript Front Page Tutorials Macromedia Dream Weaver Tutorials dreamweaver Publishing your site, FTP, ChMod, Promotions
RSS Newsfeed
for your site
DW News
Calendar
DW Forum
Right click on button and copy shortcut

Add to My Yahoo!

Reminder
Remember to book mark this site!



Request a Tutorial

7 Setting Up an External Sheet 7

Box Outlines

1  2  3  4  5  6  7  8  9  10


The dotted purple outline above around boxed outlines is a border styles of the element H3 on this page. It is written in the following way:

h3 {
border: thin dotted #800080;
}

The dashed line under the page title is a styles of the horizontal rule <hr> tag.

hr{
border: thick dashed navy;
}

These dotted and dashed lines are simple styles of  page elements. Nearly anything can be bordered in this way such as paragraphs, headers, iframes, tables, cells, textareas and so forth. In this section of our external style sheets you will create a clip and save like coupon on a page for a piece of code you want others to embed on your page.

Preparing your HTML

1. Open an html document in your html editor of choice.

2. On your HTML page insert a text area box where the code will look like this:

The code for a text area box like above is this:

<textarea rows="4" name="S1" cols="41">Your clip and save coupon message here</textarea>

3. On your HTML document,  insert in the head of your document the link tag to call your fancyborders.css style sheet you will be creating..

<link rel="stylesheet" type="text/css" href="fancyborders.css">

4.  Open a new CSS file in your CSS editor and save it as fancyborder.css

5. On your CSS file insert the code for the textarea element, follow it with an open bracket and then a close bracket. We can now play with the code!

textarea {
}

6. First lets try a thin border that is dotted purple as above. type in the following for your text area:


7. Border width: The width of the border can be either  thin, medium, thick or none. It can also be sized in pixels or points as well. Change the border to thick.

 

8. Border style: While the thicker dotted line is more like a coupon then the thin dotted line, it still is not what we want. Borders styles are shown below, except for none. For our coupon, after you experiment with the styles, leave it set to dashed.

solid


double


inset


outset


ridge


groove


dotted


dashed

 

9. Our coupon should stand out. we can change the color to blend in or styand out. Colors are by standard name or Hex code. Set the coupon color for red or #FF0000.

Whala!@ we have our clip and post coupon.

Once your done with this, Try using other tags to achieve different results.

Every wonder how I can have two textarea boxes on the page and only have them each display different styles like above? Next lesson...  style class



"Building The Web Into a Nicer Place -- One Site At A Time"
Developing Webs Group Copyright © 2001-2025 All Rights Reserved
Privacy and Legal