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

Drop Caps in CSS

For this drop cap we want to force the first big letter to span about four or five lines. The font-size for the big first letter is exactly 100 pixels while the line height is 70 pixels. We tried a line-height of 80 but that leaves a little too much white space. A top padding of 2 pixels allows the first big letter to align with the top of the first line of text. Two pixels is a slight drop. No math, just guestimating.

Magazine style CSS can enhance the page if there is enough text to make the adornment work for the text and not against it. We need more text to get the look we want here. Actually for this example we need a lot more text, either that or we lessen the text width which is what we are doing here.

The drop cap code is easy. We used Inline CSS Style since we will probably never need to use this particular drop cap again.

Copy and paste this in your Blog or Web page.

It will look like this.

For this drop cap we want to force the first big letter to span about four or five lines. Of course we have to type about four or five lines of text to make it work.

Done!

Another way to do the same thing

CSS Style If you want to use the large drop cap again the style can be added to your external style sheet or the top of your page between the <style> and </style>. Then you only need to reference the defined style. The style code is nearly identical to the inline style. We insert the
.abigletter {
}
and then put the inline style in the external style sheet.

The CSS looks something like this.


.abigletter {
float:left;
color:#D4D4C7;
font-size:100px;
line-height:70px;
padding-top:2px;
font-family: times;
}

The HTML to type in your page looks like this.

It will look like this.

F or this drop cap we want to force the first big letter to span about four or five lines. Of course we have to type about four or five lines of text to make it work.

Monday, November 29, 2004     Permalink   EMAIL  

Overlay Text an Image


Forever
Has
Lasted
Too
Long

Copy and paste this in your Blog or Web page.

It will look like this.


Forever
Has
Lasted
Too
Long
  1. Display the background image with a div
  2. Define the desired width and height.
  3. Insert another div to hold the text.
Sunday, November 28, 2004     Permalink   EMAIL  

A FEW GOOD BLOGS

frank Stu, our dear friend, who lives in Germany but blogs in English and German. Always a good read.  diana susan shirl Angie stephen DIPTA bill golby Blogger Layouts! Skins. MJ 2 Flower gary rieke ilana Janice, a Philappine site with friendly photos and fun... punkclown dave shelly cindy jmo tish Liz Cassie the breadmaker and more. A darn good blog. Noded. Excellent photography and the polaroid border dude... riri Kane Norsehorses-turf Leslie grlinabox who now has a face. She is getting her own dot.com name soon. Soonday. theo jen Still Chris but this is the one you can OPEN AT WORK. Col. Mustard in the Library with a Hammer Michael Carmel Indiana Crossing the Rubicon We like this place. Links reduced to only the interesting. Usually technical. Circadian Shift.  Not many images so it loads fast. Icon cut from Circadian site Brendyn paul doc Rayne Today' Halley BluEyes. Colin has a fun site.  Smiles to you Colin. Colins site is an ever-changing easel. Life in the present. Art and images and more... grillboy David Fletcher's Government and Technology Weblog. Utah. AKMA Rita photo of Justin photo of dave letrascomgarfos Just Mandarin... daisy Our friend Alan. Posting more frequently!  bryn Governor Schwarzenegger, the boss.
Thursday, November 25, 2004     Permalink   EMAIL  

ALL SHOOK UP
HTML, CSS, DIV, SPAN

BEFORE ANYONE DID ANYTHING,
ELVIS
DID EVERYTHING

The Elvis centered box with a border is made with the DIV while the color change inside the bordered box is done with the SPAN.

Copy and paste this in your Blog or Web page.

It will look like this.

BEFORE ANYONE DID ANYTHING,
ELVIS
DID EVERYTHING

This code works best when you listen to Elvis. For more color choices open the color chart. We used the hexidecimal background color background:#E6E6D7. You can open the named color chart to find colors like gold, pink, and green.

ALL SHOOK UP
CSS STYLESHEET

Copy and paste this in your CSS style sheet.

The HTML looks like this.

It will look like this.

before anyone did anything
elvis did everything

The color change inside the box can be done with the span. This includes a correction, the removal of some stray code that didn't have any impact on the rendering, but a lot of extra code. And I can see now that the capitalize isn't the keyword I was looking for. It's uppercase.

Tuesday, November 23, 2004     Permalink   EMAIL  

Secrets
of Magazine Style

Magazine Style in CSS

CSS Magazine Style: Click to view copy and paste code.

Magazine Style spiffed up with copy and paste code works well on the Web. We like the use of Magazine style drop caps on a long textual page, or for your style a first big letter may be the technique to add visual interest to a long post or otherwise undecorated text. The Kauai Magazine Style Background post complete with copy and paste code may be a good one to start with. We noticed quite a few who were able to make the code their own to use in a Blog post.

...although I'm partial to the Colored Pullquotes when there is room...

The Easy Inline Pullquote has a magazine style although I'm partial to the Colored Pullquotes and the Orange Pullquotes when there is room.

For those who are writing books, or documenting family history, the How to Make Clickable Chapters Headings may be of some use. Again, it's all served copy and paste style.

The New Yorker Magazine
The New Yorker has such a nice three-column layout that a new Russian magazine mirrors it. Interesting. Weren't we all trying to get away from that three-column look?


" It's the icon of American intellectualism. You know this magazine, the one with the thought-provoking artwork on the cover, with those black-and-white cartoons sprinkled throughout the glossy, three-column layout. It's that magazine with ads for watches with astronomical price tags. "


from: New Russian magazine mirrors The New Yorker by JENNIFER LUDDEN
source: Weekend Edition - Sunday (NPR), November 20, 2004.
via: HighBeam Research

Sunday, November 21, 2004     Permalink   EMAIL  

Help!

We've received a few emails regarding Mandarin and hope someone can help us out.

"I've been receiving the XP IE error closure box every time I've accessed your site for around six or eight weeks now. It then shuts down all my windows. I'm not running SP2.

I don't know if anybody else has had this problem, but I find it with no other site I visit on a regular basis. Could it be some script you're running or do I just put it down to XP?..."
Mike Golby


"...Not a new phenomenon, I've seen it in the past too, and ignored it as not security-relevant.

It's independent of which site(s) I visit after MD, so it's not as if their sites are pulling pix from yours or so.

It stops when I close and restart the session.

It's outgoing traffic from here to www.mandarindesign.com 66.224.110.140 with remote MAC 86-59-20-00-01-00. TCP via port 80. My firewall is using the rule "Ask all running apps" for this traffic, there are 10 to 20 messages passed each time.

Were I paranoid, I'd say someone was tracking my surfing habits, some advertising somewhere perhaps. (I'm clean of spyware & virusfree). Not that it bugs me, I just thought it peculiar and thought you should know.
Stu Savory


Have you had problems with Mandarin? I've tried four PCs on every page and numerous browsers and can't duplicate the problem. Are you seeing the problem? Any guesses what might be going on? I haven't added any new scripts that I remember.

Help please...

Friday, November 19, 2004     Permalink   EMAIL  

Polaroid Picture Borders
Method 1: CSS Inline Style

Noded posts photographs with a Polaroid style border. The border looks something like this.


Photo from the notReality Gallery of Punkclown

Copy and paste this in your Blog or Web page.

It will look like this.


Photo from the notReality Gallery of Punkclown

The code above was tested in IE 5.5, IE 6.0, and Mozilla Firefox. It should work in all browsers, if you don't see a Polaroid looking border in your browser please leave a message in the comments.

Polaroid Picture Borders
Method 2: CSS Style Sheet

CSS Style for Polaroid Border

For one-time or occasional use CSS Inline Style works fine. If you want to reuse the Polaroid effect you can add a style to your external style sheet or in the HEAD section of your page.

Where do you put the style code? If you are using a template look for the <style type="text/css"> and put the code below it. Noded added a class named polaroid to the style sheet for easy reference. The style looks something like this.

CSS Style Sheet Code

To reference polaroid and polaroidtext type this in your Blog or Web page.

Code to type in your Blog or Web page

It will look like this.

image
Your Text Goes Here

Combining Borders and Text Overlay
We used the calla.jpg image that is 300 x 225. The trick is to use negative spacing to move the text up inside the border in the polaroidtext rule.

This post could be title 100 Ways to Use One Borrowed Image. Thanks Dude for the photo and thanks to Noded for the border technique.

More Picture Border Styles

Thursday, November 18, 2004     Permalink   EMAIL  

Spider ART Generator

Image generated by Spider Art. Click to create your own image

Enter your Internet address (URL) and watch it spider graphic images and create a collage based on your links. If you like what it creates print the screen to your clipboard and paste in your graphic tool. We found the Robot stencil automation link at Bryk's blog. There's a lot to this site, we had to search to find the SpiderArt generator. Let us know if you find more treasures.

We watched it paint graphics and text from vlca, chessnut, Fridayfishwrap, Easybakeoven, Other_side, dianasplace, fatshadow, and more.

Tuesday, November 16, 2004     Permalink   EMAIL  

Firefox 1.0 Free Download

The browser wars are over. Firefox won.



Overheard:101 things that the Mozilla browser can do that IE cannot. Via email from Stu Savory.

Has anyone joined
Blogarama? Why?

Another place we noticed is
BlogExplosion that promises to bring new visitors. Does it work? Good visitors or junk hits?

We aren't big joiners but wonder, are we missing any good blog related sites?

Monday, November 15, 2004     Permalink   EMAIL  

Same Code Without Opacity

Opaque

This is the same post as yesterday without opacity applied. Opacity is a no-harm effect. Some might think it looks better without the opacity applied.

Sunday, November 14, 2004     Permalink   EMAIL  

Opacity Blending Effects

Opacity

Hover over the square link. That's pure CSS in action and it only needs to be added to the style sheet once. The link squares have CSS opacity hover applied. There isn't any OnMouseover scripting for this hover effect.

Saturday, November 13, 2004     Permalink   EMAIL  

Veterans Day 2004


Veterans Day

"Americans live in freedom because of our veterans' courage, dedication to duty, and love of country. On Veterans Day, we honor these brave men and women who have served in our Armed Forces and defended our Nation."

Today is Veterans Day, a day to honor the men and women who have served our country. It's a national holiday so most Americans have the day off work to attend parades and ceremonies. Some will put flowers and flags on the graves of our Veterans. It's raining here today in Sacramento so some of the planned activities probably aren't going as planned, but that's how plans go.

Cleveland Jackson
On the eleventh day, of the eleventh month, blogger Stephen James last year offered in memory of a fallen soldier the name: Cleveland Jackson. His name didn't make it on the Vietnam Veteran Memorial Wall. His memory is honored by bloggers.

How to Float the Veterans Day Poster
The technique for floating an image with a caption is simple. It's a paragraph with CSS style added to the paragraph that contains the image.

 
<p style="width:125px;float:left;">
<img src="picture.gif" width="100">
<br>Caption
</p>

The text will wrap around the image. The poster is 100 pixels wide so we made the paragraph wider with width:125px; so that there would be some whitespace between the poster and the text.

Copy and paste this in your Blog or Web page.

It will look like this (image included).


Veterans Day

"Americans live in freedom because of our veterans' courage, dedication to duty, and love of country. On Veterans Day, we honor these brave men and women who have served in our Armed Forces and defended our Nation."

THE REST OF YOUR TEXT GOES HERE
Thursday, November 11, 2004     Permalink   EMAIL  

Torturing Tables with Opacity

Table Cell Opacity

This is a simple table with a background image. The first cell contains plain text. The next cell has 50% opacity applied. The text is barely visible at 50%.

This is a cell in a table
This is a cell with 50% opacity applied.

The code looks like this.

Table Background Opacity

This table has the opacity applied to the background image. The table cell inherits the opacity of 50%.

This is a cell in a table with a background opacity of 50%

The code looks like this.

Table Background Opacity with Position:relative

This table has the opacity applied to the background image. The table cell inherits the opacity of 50%.

Adding position:relative; to the cell style will make the text fully visible (fully opaque) in Internet Explorer.

This is a cell in a table with a background opacity of 50%. This text is fully visible (fully opaque) in Internet Explorer.

The code looks like this.

Table Background Opacity with Fully Opaque Text

The fully opaque text achieved with position:relative; only works in Internet Explorer. At first it seems like it should work to simply apply opacity to the table background image and then apply an opacity of 1.0 to bring the text back to fully opaque. It doesn't work. The 1.0 is applied to the 50% opacity so we still end up with opacity of 50%. Opacity is applied across the entire object, in this example the table.

The position:relative; that works in IE in this opacity example isn't a hack or a trick. It works in other browsers when used in a div as demonstrated in CSS Opacity Applied to Background, but the code is not intuitive.

http://music.trentadams.com

The effect that Trent achieves (look at it in IE) is done by putting the opacity on top of the image. It doesn't use tables. Take a look at the effect, it can work in Mozilla with a minor change to the stylesheet. We can see that Trent attempted it to make the opacity work in Mozilla, the syntax is only slightly off. Trent (no email) if you see this here's the CSS external style sheet code that will make it work in other browsers.

#content   {
   position:absolute;
   top:180px;
   left:10px;
   width:600px;   
   filter: alpha(opacity=70, style=0);
   opacity:.70;
   -moz-opacity:.70;
   background-color: #FFFFFF;
   padding:2px;
   border:2px solid #0099FF;
         }

Have a great Wednesday. Really, I'm nearly finished with opacity.

Wednesday, November 10, 2004     Permalink   EMAIL  

CSS Coded Opacity Borders

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.

Copy and paste this in your Blog or Web page.

It will 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.

Tip: 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.

The first div that contains the background image is 300 x 225. The second div with the border is 280 x 205.

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

Some blogging tools insert stray <br> breaks or <p> paragraph tags where you think there are only blank lines. If the copy and paste code doesn't work try removing extra whitespace using the delete key.

Lillies from above by Cameron. Click to enlarge
Photograph from the notReality Gallery of Punkclown
Sunday, November 07, 2004     Permalink   EMAIL  

CSS Filmstrip Frame Border

                        
                        

Three pictures, each 100 pixels wide.

  • Filmstrip frame width 306px
  • Image dimensions 100 x 75 (three 100 x 75 images)
  • The top border and the bottom are the same code.
  • The Font size 5pt makes a small square.
  • Remove white space in the code.

Copy and paste this in your Blog or Web page.

It will look like this.

                        
                        

It looks like a lot of code but it's just the same code repeated as many times as needed to create a top border. Who is that lovely mother? My daughter. Today is her birthday. Happy Birthday Lanissa.

Wednesday, November 03, 2004     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.