Squidoo CSS Borders
Ranked #1,274 in Squidoo Community, #125,038 overall
CSS Borders for LensMasters
The following inline CSS border codes show you the various CSS properties you can use to change the HTML styles to the border.
It also provides you with a way of setting border styles for one or more sides of an element. It is not difficult and can really spice up your Squidoo lens or pages!
Contents
- Using Inline CSS on Squidoo
- CSS Border Styles
- CSS Border Colors
- Solid Line
- Dotted Line
- Dashed Line
- Double Border Line
- Ridge Border
- Ridge Border on Bottom
- Groove Border
- Double Bottom Border
- Double Top Border
- Inset Border
- Outset Border
- Dashed Border on Left Side
- Outset Border Around an Image
- A Mixture of Border Values
- Centering Text within a Border
- Inline CSS Tools
- Time for a little Q&A
Using Inline CSS on Squidoo
You cannot use brackets { or } within your lens. This prevents you from being able to use CSS in the more traditional sense, by assigning the values via a selector, externally, etc. This, I believe, is because we are allowed to use inline CSS (meaning via an HTML tag), which overrides the the CSS that would otherwise be controlled by Squidoo. You are free to use CSS within the text fields, as long as it is used as part of an HTML tag, using the style attribute. This is known as Inline CSS
So, you can use CSS in the following manner:
Use Tags, such as <p> or <b>. For further info, please see Basic HTML for HTML that you can use on Squidoo.
Next, you must use the HTML style attribute. It would be used as such <p style=", with the CSS properties enclosed by a " (quotation) and a > (greater than sign).
Each CSS property must include a : (colon) and then the value, such as a pixel size, color or font weight.
Each CSS set of properties is then separated by a ; (semicolon).
A very basic example would be
The example is using the <p> HTML tag to create a blue background and white colored wording.
The style attribute follows and must have an equal sign = followed by a quotation ".
Example: style="
The CSS property must have a colon : prior to the value. It does not need to have a space, but it is visually helpful for you.
Example: background: blue
There are two CSS properties (background and color), which must both be separated by a semicolon ;.
Example background: blue; color: white
The entire style contents must be enclosed in quotations ".
Example: "background: blue; color: white;"
In order to complete the tag, you must have a closing tag </p>
Example: <p style="background: blue; color: white;">IMAGE OR TEXT ENCLOSED BY THE TAGS</p>
This is entire thing is known as a element (starting and ending tag, and everything in between).
CSS Border Colors
Example: border-color: value;
Values:
* color name
* hexadecimal number
* RGB color code
* transparent
*See HTML Tips for Color for a bunch of color choices.
Solid Line
A solid border line
Use the following code:
<p style="border:4px solid #1a67b8;">A solid border line</p>
More Information and examples on Solid Line CSS Borders.
Dotted Line
A dotted border line
Use the following code:
<p style="border:4px dotted blue;">A dotted border line</p>
For more examples, please see Dotted Line CSS Borders
Dashed Line
A dashed border line
Use the following code:
<p style="border:4px dashed #1a67b8;">A dashed border line</p>
Double Border Line
A double border line
Use the following code:
<p style="border:8px double #1a67b8;">A double border line</p>
Ridge Border
A ridge border
Use the following code:
<p style="border-width:8px;border-style:ridge;border-color:blue;">a ridge border</p>
Ridge Border on Bottom
Ridge border on bottom
Use the following code:
<p style="border-bottom:10px ridge blue;">Ridge border on bottom</p>
Groove Border
Groove border
Use the following code:
<p style="width:200px;height:50px;border:8px groove blue;">Groove border</p>
Double Bottom Border
This borders below the text or image.
A double bottom border
Use the following code:
<p style="border-bottom-width:8px;border-bottom-style:double;border-bottom-color:blue;">A double bottom border</p>
Double Top Border
This borders above the text or image.
A double top border
Use the following code:
<p style="border-top-width:8px;border-top-style:double;border-top-color:blue;">a double top border</p>
Inset Border
An inset border
Use the following code:
<p style="border:8px inset blue;">An inset border</p>
Outset Border
An outset border
Use the following code:
<p style="border:6px outset blue;">An outset border</p>
Dashed Border on Left Side
Dashed border on left
Use the following code:
<p style=" border-left: 3pt dashed blue;">Dashed border on left</p>
A Mixture of Border Values
Pretty weird huh?
Use the following code:
<p style="border-top : 4px dotted red; border-left : 4pt dashed rgb(90,90,90); border-bottom: 6px ridge red; border-right: 5px groove #733366;">Pretty weird huh?</p>
Centering Text within a Border
Here's the way that you can use to center text. You would use html for a "space".
The following would equal two spaces:
Repeat the code above over and over, until you have positioned the text or image into the center. As you will see by the example code below, I used this html 26 times before the link centered.
**Notice that I used "text-decoration:none"? This was to prevent the link underline from displaying all the way from the left side.**
A Whole Bunch of Words
General words about general stuff.
More words about weird stuff.
Squidoo Tools
Use the following code:
<p style="border:6px outset blue;"><b>A Whole Bunch of Words</b>
General words about general stuff.
More words about weird stuff.
<a style="text-decoration:none" href="http://www.squidoo.com/great-squidoo-resources" title="Squidoo Tools"> <b>Squidoo Tools</b></a>
Inline CSS Tools
- CSS text generator - CSS tricks with inline CSS
- Code Maker- CSS text tricks for forums, message boards, and Squidoo lenses.
- CSS Tutorial - Inline
- Test your changes.
- CSS Examples
- Examples for web building.
Time for a little Q&A
Post your questions on this Squidoo topic below, and I'll do my best to answer them for you here.
-
Reply
-
RenaissanceWoman2010
Mar 30, 2011 @ 2:29 pm | delete
- I love these borders! I just used one on my Renaissance Year lens. Thanks! :-)
-
-
Reply
-
nichevalue
Mar 1, 2011 @ 2:31 pm | delete
- Cool CSS tricks for making borders. I have been meaning to update some of my lenses and would like to add some visual CSS effects. Thanks.
-
-
Reply
-
Guyverguyjr
Jan 21, 2011 @ 10:57 pm | delete
- Thanks for making this lens. If i ever update any of my lenses i'll com back here to put some borders for my text in the text modules. =D
I favorite this lens so i can come back here when i need it.
-
-
Reply
-
ravi551854
Jan 19, 2011 @ 2:54 am | delete
- i have learn a lot about the css and i am definitely used a lot in my lens
-
-
Reply
-
Chinajoy
Jan 18, 2011 @ 2:39 am | delete
- wow...great lens, but this is going to require a bit of study for me (a beginner), I do like to do some of the borders for my photos in photoshop and save them as a jpeg, and upload them ready to go.
-
- Load More
P.S. Still stuck?
Drop by our SquidU.com forum. Ask for help, don't be stingy, be sure to smile, and we're betting someone will come to the rescue. Explore related pages
- Free Images and How to Use Them Free Images and How to Use Them
- My Favourite CSS Tricks on Squidoo My Favourite CSS Tricks on Squidoo
- Squidoo CSS Borders Squidoo CSS Borders
- Lens Promotion and Traffic Generating Strategies Lens Promotion and Traffic Generating Strategies
- Squidoo Topics and How to Use Them! Squidoo Topics and How to Use Them!
- How to Use the Polaroid Module How to Use the Polaroid Module
