• I’ve got my site up and running at https://evilmoose.shafted.com.au – and I’m mainly happy with it now. But there are a couple of things that aren’t working, and I just can’t figure out why. The first is image centering. At the moment I’m using <center> tags, just because that’s the only thing that seems to work (having looked at the way the images are displaying in Firefox and IE anyway). As an example though, I’m using this code:

    <div class=”dropshadow” style=”width: 310px; text-align:center;”><img src=”https://evilmoose.shafted.com.au/images/xerxes.jpg&#8221; alt=”not a moose” width=”300″ title=”not a moose – he’s a poddy calf”/></div>

    in my post from Jan 18th. I’ve tried all of the other different centering methods I could find as well, none of them work either, and I can’t see why!

    Second problem – my category links just display the contents of my main index.php page. They show the:
    /index.php?cat=7
    on the end of the link, but the page displayed looks just like the main page. The best example to see this would be from the category links on my: https://evilmoose.shafted.com.au/russell.php page, as I only have one category link on my main page, and it’s well hidden in the sidebar.

    If anyone could help at all with either of those problems, that would be great, as they’re driving me somewhat insane.

Viewing 7 replies - 1 through 7 (of 7 total)
  • For the centering: you could use

    margin: auto;
    position: relative;

    I don’t know whether it will work on “a” tags but it is commonly used to center divs. So you could place the image in a div and center that div.

    Thread Starter mooses

    (@mooses)

    Hoorah, that worked. Not sure why nothing else did, but the div tag for the image now reads: <div class=”dropshadow” style=”width: 310px; margin: auto; position: relative;”> and the image is centered. Thanks dissurion. Now to fix up the rest of them! And solve the problem of why my category links refuse to work….

    Thread Starter mooses

    (@mooses)

    ARGH. I have the horrible feeling I’m missing something terribly obvious here. But if you go to https://evilmoose.shafted.com.au/russell.php – and click on any of the category links, they don’t work. The link in the bar shows as: https://evilmoose.shafted.com.au/index.php?cat=11 for example, but all that is shown on the screen is the standard evilmoose.shafted.com.au page.

    If it’s relevant, I have limited evilmoose.shafted.com.au to showing category 1 posts (and possibly one other), and the /russell.php page shows every other category at the moment.

    Hi there,
    my Blog is also up and running fine, you can look at it at https://www.web-pinger.net/wordpress/, except that the categories do not display any pictures. Since my blog is picture-heavy, the categories must display the pictures also. Incidentally, once you klick a category (and see it without pictures) and then klick on “No Comments”, you will be transported to the comments page AND suddenly see all pictures related to this entry.

    Mooses,
    you might want to try asking in a seperate post so it get’s more visibility.

    Marcellosenn, actually the same for you. ??

    Will not work in Firefox, I’m afraid.
    Try this:
    https://netmechainc.com/news/vol7/html_no10.htm

    So the trick is to make a paragraph class

    .centeredImage
    {
    text-align:center;
    margin-top:0px;
    margin-bottom:0px;
    padding:0px;
    }

    Works for me, https://www.hansvandenberk.com

    I currently use:
    post img centered {
    display:block;
    }

    Works well across browsers…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘centering and category link problems’ is closed to new replies.