How can I specify different img and p widths?
-
Hi there,
I’ve tried to specify different maximum widths for my content image and paragraphs but am struggling a bit. This is the code I’ve used –
#content p { width: 500px; } #content img { width: 600px; }
Here is a good example of it at work. For some reason only images which have a caption are able to expand to that width. The top image of the eiffel tower has no caption and is very small, it’s sticking to the p width.
Any help would be much appreciated,
Thanks
Dan
- The topic ‘How can I specify different img and p widths?’ is closed to new replies.