Mandarin Logo
MainBlogFAQsBox TipsText TricksColor ChartFree GalleryCSS Opacity
TWO CENTS CURRENT ISSUE 2006 WEST SACRAMENTO CALIFORNIA

CSS Coded Opacity Borders
Opacity Works in Opera 9.0

Thinking inside of the box...
Borders are usually around the outside of a photograph but we thought it might be interesting to apply the border to the inside of this photograph. This is a white border with 50% opacity applied. Opacity works in IE, Firefox, and Opera.

Copy and paste this in your Blog or Web page.
Note: The line breaks are removed so that the code doesn't interfere with the Blogging tool.

It will look like this (image included).

Curios About the Code?

Outer Div

Opacity Border

End Outer Div

Put it all together and it will still look like this.

We used the image calla.jpg as a background in the first div. In the second div we put a white border with opacity applied.

Coding Details:

The first div that contains the background image is 300 x 200. The second div with the opacity border applied is 280 x 180. To position the border inside of the image we calculate the placement of the border. For example, we are using a 10 pixel border. That's 10 pixels on the left, right, top and bottom.

  • Image: calla.jpg
  • Border: 10 pixels
  • Background: 300 x 200 pixels
  • Border: 280 x 180
    • 300 - 20 = 280
    • 200 - 20 = 180

Photograph with permission from the notReality Gallery of Punkclown.

This Opacity border works in version 9.0 of Opera that we found at the OPERA DESKTOP TEAM The proprietary -moz-opacity:.50 is no longer needed but is included for possible backward compatibility in Mozilla.

Sunday, February 26, 2006     Permalink   EMAIL  



"Love
does not consist
in gazing at
each other
but in looking
together
in the same
direction."

- Antoine De Saint-Exupéry
Stu Savory and his dog Wilma

Copy and paste in your Blog or Web page.

Float the Quote

Add a Picture

Clear the Float

It will look like this.


"Love
does not consist
in gazing at
each other
but in looking
together
in the same
direction."
- Antoine De Saint-Exupéry
Stu Savory and his dog Wilma


Dedicated to Stu and Cornelia who had the love of Wilma for many years before she passed a year ago.


Thursday, February 23, 2006     Permalink   EMAIL  

Interesting Content and
Search Engine Techniques

At Designers Who Blog they create a unique an interesting approach for Blog posts. Based on the visually pleasing banners and a bite-sized description of Blogs they will continue to grow in popularity. They take our photograph and rework it into graphic creative banner and a screen print that lures us in. Only after seeing it did I realize that we probably all would like to see what someone creates to represent a Blog, for curiosity if not plain old vanity. They didn't trash the image like I did to RoadApples new photo in the quilt (bottom row far right). It's interesting (to me) to see the Designers Who Blog Creation. It's good content so we linked.

Rankings
Their Google Page Rank today is average while they are climbing in Alexa. That comes to mind because of some questions yesterday about how to get search engines to recognize your Blog or Web site and how to get higher rankings.

Search Engine Techniques
We don't use any techniques but have read a number of ideas. We know not to add a page to Google until it's final and supposedly how to write a description and keywords although we stopped paying attention and now just create new pages sometimes without unique descriptions or keywords. It gets indexed either way. Stu avoid certain words and uses controversy effectively enough that we read it. It was easy to predict that his blog would become as popular as he is today.

Secret Techniques
Do you have a secret technique? Do you follow any of the rules for getting a higher ranking? Recommended reading? The big question is for those who focus on higher rankings to make advertising money. Do you make any money from the advertisements? Or, do you have to run with the big dogs to make money?

Wednesday, February 15, 2006     Permalink   EMAIL  

Our Valentines

frank shirl The Chrocet Blog. You will get hooked. Happy Valentine Noded, the excellent photography and the polaroid border dude... Happy Valentine Day Kim. Kim of Michigan uses IE because it does what he means instead of what he said. Kim is the doodle bug expert and image maker. Carmel Indiana Leslie grlinabox who now has a face. She is getting her own dot.com name soon. Soonday. Morgan Brown Col. Mustard in the Library with a Hammer cindy Life in the present. Art and images and more... Norsehorses-turf Rayne Today' golby in South Africa Cassie the breadmaker and more. A darn good blog. shelly Happy Valentine whatever you name is. Oops. Need to check that. Exploding Cigar. Tales of the weird... Happy Valentine Janice. Janice, a Philippine site with friendly photos and fun... photo of dave diana Happy Valentine Alan.Our friend Alan from the San Francisco Bay Area. Trips to Disneyland, Seattle, and going to China and Hong Kong!  Mozilla and IE. Posting more frequently!  gary Now in Riverton, Utah he is a Safari dude. A two-time father who has finally found time to start posting again. rieke Stu, our dear friend, who lives in Germany but blogs in English and German. Always a good read.  DIPTA doc 2 Flower stephen susan Kane MJ jmo jen letrascomgarfos Liz punkclown paul ilana Angie photo of Justin theo Gary Turner. The idea man.  Gary Turner lives one hour north out of London in Northampton, England with his wife and daughter and he describes himself as a passionate technologist and a visionary. Talk Left: The politics of crime Alex lives in Japan right now, on the US Air Force Base.Has lived in Hong Kong and Uruguay. Have husband will travel.Alex has students from the countries affected by the Tsunami. bill shirl shirl Kuan GC Gondolier Kuala Lumpur: Malaysia daisy riri bill
Tuesday, February 14, 2006     Permalink   EMAIL  

Typography

The Five Simple Steps to Better Typography addresses some terminology and techniques that might help us make that last post look better and make our text more readable. We have copy-and-paste code for CSS Leading and Kerning and look forward to applying the techniques to the CSS Style tips and tricks.


Sunday, February 12, 2006     Permalink   EMAIL  

The Shorter Version

This text is x-large and is aligned to the right of the image. We can type as much as we want here on the right.

CAPTION

The sun is shining here in West Sacramento, California. The plants think it is spring. The Bird of Paradise bloomed yesterday and it's time to do spring cleaning in the backyard. Have a great Saturday.

Copy and paste this in your Blog or Web page.

It will look like this.

The text to the right.

CAPTION
The rest goes here.

We are using the absolute-size keyword x-large. The possible values are xx-small, x-small, small, medium, large, x-large, and xx-large.

Saturday, February 11, 2006     Permalink   EMAIL  

Image and Pullquote Style

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically...

I'm wondering if there is a code to put a "pull quote" type paragraph like the orange pullquotes next to an image keeping the pull quote about the same size as the image?
~Jeff

Orange Pull Quote

...this will look like some of the pullquotes or subtitles we see in magazine layout...

The Orange Pullquote that Jeff is referring to looks something like this. This is the paragraph. In the code the paragraph is the second part. The pull quote that floats to the right actually comes first in the code. Isn't that confusing. Coding is like that. The right float comes first in this one so we have to flip-flop our thinking to keep coding.


Width
The pull quote is in a <div> defined as 160 pixels wide. Following the pull quote (in the code) is the text that displays on the left in a paragraph. The paragraph width is not defined.

Height
The height is not defined in the <div> or in the <p> in the orange pull quote example.

Define the width and height

Image on left instead of paragraph
We found an image that is 160 x 239 pixels. We will define the width and height of the pullquote to be the same size as the image. Let's try it with a black background we can see what the pull quote looks like.

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically...

Colored Pull Quotes

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically...

Copy and paste this in your Blog or Web page.

It will look like this.

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically...

Tighter Pullquotes

We are floating the text to the right as far as our post stretches. The image will be flush left. To make it tighter we can contain the two in a div that is a little wider than the 160 width times 2.

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically...

We fiddled with the words to make them fit. If we continued to type it would of course overflow.

Copy and paste this in your Blog or Web page.

It will look like this.

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically...

Words in the right side box...

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically... they stay somewhat inside but will overflow in Firefox and Opera...

And we can keep typing after the div has been cleared and it will look like this in your browser. If the image separates from the text increase the width. It might take a few times to get it just right with your image.

If the colored pullquotes are higher than we defined height:239px then Firefox and Opera will overflow. IE stays within the width defined. This is not a deficiency in any of the browsers, it's just how this particular code is rendered in various flavors.

The Spill Effect

Firefox and Opera    Internet Explorer

This screen capture shows how the spill effect works in Opera and Mozilla.

No Spill

Borders On
Maybe we don't want it to spill in any browser. We can put the image in a <div> with a defined width for this effect. We'll turn the borders on so that we can see what the left side is doing and how the right side aligns.

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically... they stay somewhat inside but will overflow in Firefox and Opera...

Maybe we don't want it to spill in any browser. If we contain the image in a <div> with a defined width then we get another effect type this before the end </div> that has a defined width and contains the image.

Now we can continue typing. We are continuing while we are still in the outer div. We can type as much as we want to type. Your text goes here.


Image and Pullquotes Without Borders

Transparent Spill
Maybe we don't want it to spill in any browser, or we don't want to highlight the spill. We can put the image in a <div> with a defined width for this effect. We'll turn the borders off now that we can know what the left side is doing and how the right side aligns.

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically... they stay somewhat inside but will overflow in Firefox and Opera...

Maybe we don't want it to spill in any browser. If we contain the image in a <div> with a defined width then we get another effect. We type this before the end </div> that has a defined width and contains the image.

Now we can continue typing. We are continuing while we are still in the outer div. We can type as much as we want to type. The spill is transparent now and of no consequence. You text goes here.


Copy and paste this in your Blog or Web page.

It will look like this.

...this text is 160 pixels wide and 239 pixels high but the words don't stay in the box automatically... they stay somewhat inside but will overflow in Firefox and Opera...

Maybe we don't want it to spill in any browser. If we contain the image in a

with a defined width then we get another effect. We type this before the end
that has a defined width and contains the image.

Now we can continue typing. We are continuing while we are still in the outer div. We can type as much as we want to type. The spill is transparent now and of no consequence. You text goes here.


The Short Version

...this text is 160 pixels wide and 239 pixels high. The same width and height as the image...

YOUR TEXT GOES HERE

The rest of your text goes here.

Copy and paste this in your Blog or Web page.

It will look like this.

...this text is 160 pixels wide and 239 pixels high. The same width and height as the image...

YOUR TEXT GOES HERE

The rest of your text goes here.

Notice that we increased the width to 100%. If the image splits away from the pull quote try increasing the width in pixels or percents.

Saturday, February 04, 2006     Permalink   EMAIL  

Archives

2006: J F M A M J J A S O N D

2005: J F M A M J J A S O N D

2004: J F M A M J J A S O N D

Mandarin Design
"For people who make mistakes"

HTML and CSS Examples
Popular Blog Code
TIPS and TRICKS

Magazine style is easy with simple copy and paste code for styled drop caps, small pullquotes, new orange pull quotes,
...this will look like some of the pullquotes and styles we see in magazinelayout...
opacity pullquotes, and easy pull quotes. A magazine cover and highlights are served cut and paste style in Text Tricks. Add Polaroid borders, triple borders, and float pictures left and right the easy way with tips and tricks in the Box Tips and FAQ sections.



Search WWW Mandarin

THEBLOGS!

April Quilt The Quilt People...October 2004 The Quilt People...April 2004 Deaf Blogger Sign In The Quilt People...November 2003 including the Women and Tech Blog Prom The Quilt People...October 2003  Women and Tech Blog Prom
NEW SITES COMING IN


000000330000660000990000CC0000FF0000
003300333300663300993300CC3300FF3300
006600336600666600996600CC6600FF6600
009900339900669900999900CC9900FF9900
00CC0033CC0066CC0099CC00CCCC00FFCC00
00FF0033FF0066FF0099FF00CCFF00FFFF00
00FF3333FF3366FF3399FF33CCFF33FFFF33
00FF6633FF6666FF6699FF66CCFF66FFFF66
00FF9933FF9966FF9999FF99CCFF99FFFF99
00FFCC33FFCC66FFCC99FFCCCCFFCCFFFFCC
00FFFF33FFFF66FFFF99FFFFCCFFFFFFFFFF
00000000330000660000990000CC0000FF00
00003300333300663300993300CC3300FF33
00006600336600666600996600CC6600FF66
00009900339900669900999900CC9900FF99
0000CC0033CC0066CC0099CC00CCCC00FFCC
0000FF0033FF0066FF0099FF00CCFF00FFFF
3300FF3333FF3366FF3399FF33CCFF33FFFF
6600FF6633FF6666FF6699FF66CCFF66FFFF
9900FF9933FF9966FF9999FF99CCFF99FFFF
CC00FFCC33FFCC66FFCC99FFCCCCFFCCFFFF
FF00FFFF33FFFF66FFFF99FFFFCCFFFFFFFF
0000000000330000660000990000CC0000FF
3333003333333333663333993333CC3333FF
3366003366333366663366993366CC3366FF
3399003399333399663399993399CC3399FF
33CC0033CC3333CC6633CC9933CCCC33CCFF
33FF0033FF3333FF6633FF9933FFCC33FFFF
3300003300333300663300993300CC3300FF
6600006600336600666600996600CC6600FF
9900009900339900669900999900CC9900FF
CC0000CC0033CC0066CC0099CC00CCCC00FF
FF0000FF0033FF0066FF0099FF00CCFF00FF
3333003333333333663333993333CC3333FF
6666006666336666666666996666CC6666FF
9999009999339999669999999999CC9999FF
CCCC00CCCC33CCCC66CCCC99CCCCCCCCCCFF
FF0000FFFF33FFFF66FFFF99FFFFCCFFFFFF
000000333333666666999999CCCCCCFFFFFF

Blog Tips, Tricks, and Cheats

Magazine Style: The Joy of CSS
The joy of CSS. Here we are using font sizes, margins, floats, and line height to position the text exactly where we want it. Copy and paste code is here.

Image of code in IE and Mozilla
MAKE A LOGO
MAKE A BANNER OR LOGO NOW
Make Your Own Banner
Make Your Own Logo
LINK TO MANDARIN
ADJUSTABLE TEXT LINK

You don't need images to link to us.

Blog Trashed by Mandarin

Copy and paste this in your page.

It will look like this.

Blog Trashed by Mandarin

You are welcome to take this text link. Fiddle with it and make it your own. Or, you can post it exactly as it is.

Recent Tips and Tricks


January 2006
CSS Float - float image and caption to the left.


February 2006
Copy and paste call outs and CSS opacity borders.


March 2006
CSS Classes
Referencing multiple CSS classes to make a box float.


April 2006
Magazine style CSS and Alphabet blocks for added unique Blog style.


CSS Classes
Referencing multiple CSS classes to make a box.


Polairoid Border
The Polaroid border is served copy and paste style.


Fashion Colors
The latest Web fashion colors.


Magazine Style
Magazine style cover image with a rainbow insert.

MANDARIN MAIN PAGE


More Free Tips and Tricks on the Mandarin Main Page Click Here


THE END

Michelle and Rob Wooliscroft

own and operate this site. Phone 916-371-6977 for more information.
MAIN BLOG FAQs CSS:Boxes TRICKS About CSS Style Color Chart GALLERY PureText
Validate HTML Validate Style Sheet Elements of Style Yahoo Buzz Google Zeitgeist Lycos 50 W TP TP2 TF Technorati Sitemeter
Mandarin Archives 2006: J F M A 2005: J F M A M J J A S O N D   2004: J F M A M J J A S O N D  
Clean PC Banners Free Banners Tag Board Gator ColdFusion Fade Images Refer Grouping Web Help Drop Caps
This work is licensed under a Creative Commons License