Neither Width nor Max-width work dynamically for the Images within the post
-
Hi,
I have a Problem which is probably simple and stupid, but I cannot solve it, not even by searching google for about 3 days.
So I decide to ask.My Page is still http://www.Pagesonceblank.com. The Theme I built myself, it is very barebone, and somewhat weirdly implemented into the page. Everything works as I want it to work, except:
In my stylesheet, I try to resize the Pictures in the Post dynamically.
#inhalt img { max-width: 100%; Height: auto; }
I also tried width: 50%; , a method that works everywhere else on the page. Here, it makes the picture half as big, but when I shrink the browser window, the Pictures in my post stays the same size, unlike any other pictures I used the same method on.
Since the method can hardly be at fault, I strongly suspect I messed up somewhere stupid. My Code for the post looks somewhat like this:
<div id="text"> <div id="inhalt"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Der Verweis (Permalink) zu: <?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="beitrags-info"><p2>Von <?php the_author_posts_link(); ?> am <?php the_time('d. F Y'); ?> um <?php the_time('H:i'); ?><?php edit_post_link(); ?></p2></div> <div class="der-beitrag"><p><?php the_content(); ?></div> <!-- Ende des jeweiligen Beitrags --></p> <p class="postmetadata"><p2>Posted in <?php the_category(', '); ?></p2><div class="feedback"><p2><?php comments_popup_link('Kommentare (0)', 'Kommentare (1)', 'Kommentare (%)'); ?></p2> <br><br><br><br><br> </div> <!-- Ende des jeweiligen Beitrags --> <?php comments_template(); /* Der Kommentarbereich */ ?> <?php endwhile; else: ?> <p>Tut mir leid, es wurde kein passender Beitrag gefunden.</p> <?php endif; ?> <p><?php posts_nav_link(' - ', '« Zurückblättern', 'Weiterblättern »'); ?></p> </div>
Please help me!
- The topic ‘Neither Width nor Max-width work dynamically for the Images within the post’ is closed to new replies.