Help - Search - Members - Calendar
Full Version: stylesheet not working
Movable Type Community Forum > Using Movable Type > Default Stylesheets
clmroch
Upon just getting my weblog to work, the layout is very plain (white and black with generic font, all the links and stuff at the bottom left, etc), and I wanted to implement one of the cool "themes" or styles to my blog.

Following the directions, I found the Gettysburg style I loved the look of, copied and pasted it in my Stylesheet template, saved it, then rebuilt it (Rebuild Indexes Only).

Going to my browser, nothing has changed. I went to another computer that I haven't checked out the site yet with, and still, no change in look and feel from the original.

The stylesheet is saving to styles-site.css, and this is the code referring to in in the Main Index template:

<link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />

Question.. this stylesheet appears to only apply styles to text. Are stylesheets only for this purpose? I want my site to have some style to it, and be laid out differently. I was always told CSS were just for text effects, not layout, which the MT site seems to say they will do.

I'm so darn confused. I just want to get this up!
bmk
Yes, you can use style for the whole layout, and this is how the MT defaults are.

If you provide a link to the page in question it will be easy to tell what's going on.
plato
I've just been setting up a new blog and had a very similar problem. Despite clearing all my local caches, re-building everything 8 zillion time and generally changing everything I could I still couldn't get the new style-sheet to display.

Turns out that my ISP has a cache server and the style-sheet was being served from the cache even though the version on my site was updated (got to the point that I could delete it from my site and everything still worked!). I found that leaving it for 20-30 mins worked for me - clear your caches and go have a coffee, you never know  smile.gif
clmroch
The site is http://www.rochesterforum.com. I hope you can help.
clmroch
I got it now. Fixed. I used to be an awesome HTML coder, and since the invent of FrontPage and Dreamweaver, I haven't had to dive into code for a while.

After looking at the code in the main template, I saw this tag relating to the stylesheet:

<link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />

I went back to my blog config area, and saw the "URL for my public website" was the URL you use to get to the blog, but right now, I have the blog set up on another site's account at my web host (ie. http://www.gojustin.com/blog). So I changed the URL to http://www.gojustin.com/blog instead of http://www.rochesterforum.com, and that did the trick.

So, I guess the styles do work! Now I look forward to finding others out there. If you see someone's you like, how can you find the stylesheet code? Are there sites out there with cool stylesheets posted for you to use?

Thanks for you help.
bluezion
I'm having the same problem: uploaded a new stylesheet but the changes aren't being reflected on the site.

The site is here: www.mansfieldgirl.com and the updated stylesheet should change all the text on the site to tahoma 11px, instead of verdana 13px.

Any suggestions?

-Danielion
almuhajabah
I pulled up your stylesheet and noticed that the body element is still set to Verdana:

CODE
body {
font-family: verdana, arial, sans-serif;
font-size: 13px;
color: #666666;    
}


Similarly if you meant "all the text in your blog entries":

CODE
.blogbody {
font-family: verdana, arial, sans-serif;
font-size: 13px;
color: #666666;    
}


And I can go through and see Verdana or Palatino listed as the font-family in a lot of places.

The problem seems to be that you are not making the change in the right place.
caramelo
I'm also having a problem where none of the stylesheets I paste in change the appearance of the blog. Any help would be great.

thanks,

caramelo
http://www.caramelo.net
kadyellebee
Can you give us a link to your actual blog? The main link you had in your post doesn't bring anything up for me.

Are you sure that when you paste a new stylesheet in, you are clicking SAVE and then Rebuilding?

Kristine
caramelo
That is the link to the blog. I have saved and rebuilt each time.

caramelo
www.caramelo.net
almuhajabah
If I remember correctly, you previously had trouble with your paths and had to change the settings in MT.

The new stylesheet is located at http://caramelo.bloggedup.com/blog/styles-site.css

However, the index page is looking for the old stylesheet at http://caramelo.bloggedup.com/styles-site.css

Look in your main index template for where it links the stylesheet and see what URL is listed. You'll want to change it so that it points to the new stylesheet. One easy way to do this is to use the following:

CODE
<link rel="stylesheet" href="<$MTLink template="Stylesheet"$>" type="text/css" />
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.