[SOLVED]Images in Templates and Stylesheet help
Posted: Tue Sep 02, 2008 6:50 am
I'm running CMS made simple 1.41 on localhost on my Mac as a development environment. I've been tinkering happily with the stylesheets and templates to change the colours and remove the news box.
But I cannot get an image to display - either in the Layout: Left sidebar + 1 column stylesheet or in the Left simple navigation + 1 column template.
I *can* get the image to display in the body text of the page through the TinyMCE editor. I've read the documentation and searched through the forum - but either no-one's had the problem (unlikely) or I'm too stupid to recognise the problem described another way (entirely likely) so I'm throwing myself on your mercy for help...
The css code I'm using is
the url of the image is correct - I can load the picture directly through that link. and of course it shows up fine if I just whack the link into a regular page.
I've tried tinkering with the "background" attribute - including
I did have a few problems with permissions when I first installed - but I thought I'd fixed them all.
Any help at all would be fab!
Thanks in anticipation.
Lindsay
But I cannot get an image to display - either in the Layout: Left sidebar + 1 column stylesheet or in the Left simple navigation + 1 column template.
I *can* get the image to display in the body text of the page through the TinyMCE editor. I've read the documentation and searched through the forum - but either no-one's had the problem (unlikely) or I'm too stupid to recognise the problem described another way (entirely likely) so I'm throwing myself on your mercy for help...
The css code I'm using is
Code: Select all
/*** header ***
we will hide text and replace it with a image
we need to assign a height for it so that the image wont cut off
*/
div#header {
height: 123px; /* adjust according your image size */
background: transparent;
}
div#header h1 a {
/* you can set your own image here */
background: url(http://localhost/Radarlogo.jpg) no-repeat 0 12px;
display: block
height: 123px; /* adjust according your image size */
text-indent: -999em; /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}
I've tried tinkering with the "background" attribute - including
- background: transparent url(http://localhost/Radarlogo.jpg) no-repeat 0 12px
background-image: url(http://localhost/Radarlogo.jpg) no-repeat 0 12px
I did have a few problems with permissions when I first installed - but I thought I'd fixed them all.
Any help at all would be fab!
Thanks in anticipation.
Lindsay