<div id="menu1" class="menu_pdf_styles">
text would go here
</div>
<div id="menu1" class="menu_pdf_styles">
<p><a target="_blank" href="PDFName">Click here to download Menu</a></p>
</div>
I used this code for CSS which I added to style.css file in WordPress,
Code:
.menu_pdf_styles {
background-image: url('filefolder/filename.gif');
you might have other CSS styles here;
}
The relative URL for the background image is probably incorrect. Keep in mind that relative URLs in stylesheets are resolved using the location of the stylesheet/CSS file or, when the CSS is embedded in the HTML document, the location of that document. Try changing your CSS setting to the complete URL for the background image ('http://www.example.com/filefolder/filename.gif') and see if that helps.
You will not see much of your background image unless there is a width set for the container and a height if not enough content to fill out container for a non-tiled image:
Code:
.menu_pdf_styles {
width: XXpx;
height: YYpx /* optional */
margin: 0 auto; /* remove if centering not required */
background: #fff url('filefolder/filename.gif') no-repeat center scroll;
.
.
.
}
A tiled image just needs a width, then height depends on the container expansion with content. Still, a specified height is preferred even for tiled images at times.
The relative URL for the background image is probably incorrect. Keep in mind that relative URLs in stylesheets are resolved using the location of the stylesheet/CSS file or, when the CSS is embedded in the HTML document, the location of that document. Try changing your CSS setting to the complete URL for the background image ('http://www.example.com/filefolder/filename.gif') and see if that helps.
I've tried that but it didn't work
Originally Posted by Major Payne
You will not see much of your background image unless there is a width set for the container and a height if not enough content to fill out container for a non-tiled image:
Code:
.menu_pdf_styles {
width: XXpx;
height: YYpx /* optional */
margin: 0 auto; /* remove if centering not required */
background: #fff url('filefolder/filename.gif') no-repeat center scroll;
.
.
.
}
A tiled image just needs a width, then height depends on the container expansion with content. Still, a specified height is preferred even for tiled images at times.
Open the Menu.png in your browser and right click on it. Sect Image Info. Or, open in your graphics editor and check the size there. I could probably tell you if I had link to page where image is suppose to show.
Open the Menu.png in your browser and right click on it. Sect Image Info. Or, open in your graphics editor and check the size there. I could probably tell you if I had link to page where image is suppose to show.
Or...
If you are using Firefox, just open it in the browser and look at the title bar, it will tell you.
Bookmarks