Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 11:15 am EDT

Geeklog Forums

IMG width front page different from article page


Status: offline

casper

Forum User
Full Member
Registered: 02/11/04
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?
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
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.
 Quote

All times are EDT. The time is now 11:15 am.

  • 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