Welcome to Geeklog, Anonymous Thursday, December 12 2024 @ 06:05 pm EST

Geeklog Forums

Change the html of article images


Status: offline

orfilms

Forum User
Regular Poster
Registered: 08/02/05
Posts: 70
Is it possible to change the html of article images. I want to add a border and add a margin around all images. Where in what file, and how would I accomplish this?
 Quote

papafrita

Anonymous
use the following with IMG SRC like you use width and height.

border=1 hspace=1 vspace=1

BORDER= line border width, in pixels (relevant when the IMG element appears as clckable")

HSPACE is horizontal gutter (width of white space to the immediate left and right of the image)

VSPACE is vertical gutter (height of white space above and below the image)

this shud work Smile


 Quote

Status: offline

orfilms

Forum User
Regular Poster
Registered: 08/02/05
Posts: 70
I know the HTML codes I need to use, I just want to know what php file puts the
Text Formatted Code
<img src="blah">
 
when you upload an image using the geeklog upload form. How can I change that code to automaticaly give me a border and margin every image every time?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Use CSS. See this thread, for example.

bye, Dirk
 Quote

Status: offline

orfilms

Forum User
Regular Poster
Registered: 08/02/05
Posts: 70
Thanks Dirk...

one more question... is there any way to modify what the Alt tag says? It would be great if i could make the alt tag the article title, is that possible?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by orfilms: is there any way to modify what the Alt tag says?

Nope.

bye, Dirk
 Quote

All times are EST. The time is now 06:05 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