Tweets about ‘CSS’

 

Posts in the ‘CSS’ Category

Testing code

March 11th, 2009

Well, I’ve tried the codehighlighter plugin, the syntaxhighlighter plugin, and have just loaded the wp-codebox plugin. Other than a few CSS problems to work out, this one looks like the best.

Some CSS

Download css.txt
1
2
3
4
5
6
blockquote {
background:#F4F5F7;
border:1px dashed #CCC;
padding:8px 12px 8px 36px;
margin:5px 0;
}

Some Javascript

1
2
3
4
5
this.REclassMain = new RegExp('\b' + this.classMain + '\b', 'gi');
this.REclassMainLive = new RegExp('\b' + this.classMainLive + '\b', 'gi');
this.REclassTab = new RegExp('\b' + this.classTab + '\b', 'gi');
this.REclassTabDefault = new RegExp('\b' + this.classTabDefault + '\b', 'gi');
this.REclassTabHide = new RegExp('\b' + this.classTabHide + '\b', 'gi');

Some PHP

Download php.txt
1
2
3
4
5
6
<?php
$variable = wp_list_categories('echo=0&show_count=1&title_li=');	
$variable = str_replace(array('('), '<small>', $variable);
$variable = str_replace(array(')'), '  posts</small>', $variable);
echo $variable;
?>

CSS, Javascript, PHP 1 comment

Moved!

May 31st, 2008

I’m merging the two sites. Dispelled.ca is at home now.

Also, here is a test for the Wacom Bamboo that I bought, I figure it will be easier to post formulas and ideas with pictures rather than text.

And here is a code test for the Codehighlighter plugin for WordPress… some example CSS.

.tablet {
 
background: #FFF;
color: #BBB;
border: 5px dashed #BC6247;
padding: 5px;
margin: 10px;
 
}

Holy crap. How nice is that! And Finally a bit of Latex (for displaying Math formulas) just for shits and giggles. (Edit: I nuked this one since the tablet is better/faster.)

$$\alpha+\beta\geq\gamma$$

I’ll probably use the Wacom for display of Mathematical formulas since it’s waaay easier to use than learning a new language to show them.

Cheers,
J

CSS 2 comments