Forums

CSS Vertical Align with Category Icons (5 posts)

  1. MTGap
    Member
    Posted 3 years ago #

    So I'm using the the theme desk-mess and the plugin category icons and I'm trying to change the position of the icons. Here is what it looks like now:

    [img]http://i537.photobucket.com/albums/ff339/AgentGap/old.png[/img]

    Index.php
    [code]
    <div class="post-title"><h1><?php if (function_exists('get_cat_icon')) get_cat_icon('border=false'); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h1></div>
    [/code]

    CSS:
    [code]
    .post-title {
    vertical-align:middle;
    }
    [/code]

    Now with that stated here is what I'm trying to make it look like, but can't with vertical-align:

    [img]http://i537.photobucket.com/albums/ff339/AgentGap/new.png[/img]

  2. Saurus
    Member
    Posted 3 years ago #

    You cannot use img tags to display an image hosted at another location - use the LINK tab to your photobucket account - or just a link to your site.

  3. MTGap
    Member
    Posted 3 years ago #

    Yeah do you think I noticed that.... I can't change the stupid post.

    Don't post that crap next time idiot... it didn't help me out at all.

  4. mantis108
    Member
    Posted 3 years ago #

    Hey MTGap did you ever figure this out? We are having the same challenge.. I think this page may have some answers but so far no luck with using the .my-icons CSS style on our end: http://www.category-icons.com/troubleshooting/

  5. submarine
    Member
    Posted 2 years ago #

    Hi

    put this in your style.css :

    .myicons {
    	float: left;
    	padding:10px 0 0 0px;
    	font-size:18px;
    	font-family:Georgia, "Times New Roman", Times, serif;
    	font-weight:normal;
    	margin:-7px 6px 0 0;
    	background: none no-repeat;
    }

    and this in your index.php right before the h1 tag :
    <div class="myicons"><?php get_cat_icon('link=false'); ?></div>

Topic Closed

This topic has been closed to new replies.

About this Topic