• Ciwan86

    (@ciwan86)


    Hi Guys

    On the site I’m working on, I thought I had finished everything, but I have just found a few bugs in my theme !

    Here is a post view.

    See how the text is underneath ! Why Is it like that ? I’ve checked the CSS and I see that the image has been floated to the left ! so shouldn’t that make the text automatically move up ?? ??

    Also Do I have to manually sort out the caption for images ? I thought wordpress did that automatically ??

    I’d greatly appreciate any help.

    Thank You.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael

    (@alchymyth)

    you don’t seem to have any styles for image and caption alignments in style.css.

    look into the style.css of the default theme for ways of aligning images.
    and then copy the corresponding styles into your style.css.

    Thread Starter Ciwan86

    (@ciwan86)

    Thanks alchymyth

    That worked for the caption issues.

    But still my text goes underneath the image.

    I can’t find anything wrong with the CSS. I would greatly appreciate any help.

    Thanks

    Michael

    (@alchymyth)

    the default theme also gives an example of the image alignment styles:

    img.centered {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    	}
    
    img.alignright {
    	padding: 4px;
    	margin: 0 0 2px 7px;
    	display: inline;
    	}
    
    img.alignleft {
    	padding: 4px;
    	margin: 0 7px 2px 0;
    	display: inline;
    	}
    
    .alignright {
    	float: right;
    	}
    
    .alignleft {
    	float: left;
    	}

    Thread Starter Ciwan86

    (@ciwan86)

    Thank You Soo Much Alchymyth.

    I didn’t realise. It is all OK now.

    Thank You ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post view in WordPress’ is closed to new replies.