Tuesday June 24 2008

Styling Code

As I mentioned in the previous entry I wanted to be able to style code on this blog. Coincidentally last night there was a thread on the EE forums asking the same question. In the end I discovered that when wrapping text in [ code][ /code] tags EE adds another div with a class codeblock which I was then able to style. It’s temporarily set to look like this:

.codeblock {width200overflowautobackground#e7e7e7; border: 1px solid #666;} 

Looking at this, setting the width doesn’t seem to be having any effect.

Hmm.. blog title is getting cropped in IE - will have to fix that soon.


Sean. inscribed these words of wisdom on Tuesday Jun 24, 2008 at 06:18 AM | tags: ee thread, css, this blog, expressionengine |
Commenting is not available in this weblog entry.
logo subscribe to rss
theme forest

About Me

This blog is my journey to professional web design and development. Here I will write about code and things I learn about xhtml, css, javascript, jquery, Expression Engine, Wordpress and any other CMS I need to use in my new career.

I will be adding links to the sidebar as I find useful resources and blogs. I'm also looking forward to getting feedback from other designers and developers. Thanks for dropping by.

Web Design Blogs

Tutorials

Online Resources

Find Work

Stock Imagery

Validators

CMSs

Recently Bookmarked

Tag Cloud

Reading List

Categories

subscribe to rss