Strange issue with Wordpress + Stylesheets

Soldato
Joined
24 Mar 2008
Posts
4,654
Location
High Wycombe
Hey all, hope someone can help as this is driving me nuts! :mad:

Currently working on integrating wordpress into an existing template i'm using for a basic website of my own, which should look like the below:

www.paulyd.co.uk

I have got the wordpress functionality I want integrated into the website and the code itself works fine:

www.paulyd.co.uk/wp

However as you can see the CSS doesn't work currently and for the life of me I can not see why!

IF i use the existing link ref for the CSS file it doesn't work, even after amending the code to indicate the css file is in the same directory:

Code:
	<style type="text/css" media="all">@import "images/style.css";</style>

The entire WP side of things will work fine, unformatted and ugly, the only way I can get some sort of styling is by using the following code:

Code:
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

This is then what brings it up looking like the 2nd link.

If i just put the WP code into the header I get the same issue before I have even started doing the code in the body for the loop etc.

Can give you the source code if you would like to have a look? I'm baffled by this and has had me stumped for a few days now :(

EDIT: Using this guide here to help integrate the site together
 
Last edited:
Your css is working, the backgrounds called from within it are not. You have the paths specified that the images are in the same directory as your CSS. Paths in css are relative to the location of the css file.

Also, .content (line 13), add overflow: hidden.
 
Last edited:
Of course >.<

Feel like such a muppet!! Forgot about moving the images as well and thought it was something in the code like a missing </> that was causing the problem :(

Thanks for that though!

Also, .content (line 13), add overflow: hidden.

Cheers, will get that edited too
 
Back
Top Bottom