Welcome to Geeklog Wednesday, November 22 2017 @ 01:45 pm EST


Status: offline

casper

Forum User
Full Member
Registered: 11/02/2004
Posts: 142
Location:Skien, Norway
Hello!

First image in article in the introtext need to be set at one width to keep my frontpage at desired width. But once the article is opened, I would like the image width to expand to allow it to fill the page.

Anyone know a way to make the program alter the Img width tag so different size can be achived on front page and in the article? CSS, javascript, php?

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/2005
Posts: 1240
I am assuming here that the article has a smaller size container (like a div) on the front page than the full page.

Check out this page for some ideas:

http://community.sitepoint.com/t/auto-resize-image-to-fill-container-div/26045


One of the Geeklog Core Developers.

All times are EST. The time is now 01:45 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content