MozillaZine

Placement of image

Discussion of general topics about Mozilla Firefox
bassface
 
Posts: 1
Joined: April 18th, 2006, 3:03 am
April 18th, 2006, 3:06 am

Post Posted April 18th, 2006, 3:06 am

Hi,

is it possible to have blank images (.jpg etc without html) centerd in my browser window?
I did not find any extensions or config-options for that :-(

ciao,

Stefan

jscher2000

User avatar
 
Posts: 8152
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA
April 18th, 2006, 10:01 am

Post Posted April 18th, 2006, 10:01 am

There is a stylesheet file in your Firefox profile that you can tweak to modify the way the browser displays HTML. I don't know whether or how they apply to directly opened images. Or whether making the directly opened images look just right might wreck all other web pages...

For more info on the userContent.css file and sample tweaks, see this page: Customizing Mozilla.

However, you probably still need someone more familiar with customizing to work out the best solution for your request.

dickvl

User avatar
 
Posts: 48510
Joined: July 18th, 2005, 3:25 am
April 18th, 2006, 12:03 pm

Post Posted April 18th, 2006, 12:03 pm

Maybe someone can write a bookmarklet to do the job.
I don't know if the Stylish extension can do that: http://forums.mozillazine.org/viewtopic.php?t=327735
I don't think using userContent.css for that is a good option.

texmex
 
Posts: 403
Joined: March 26th, 2006, 8:58 am
Location: NE Lincs
April 18th, 2006, 2:34 pm

Post Posted April 18th, 2006, 2:34 pm

dickvl wrote:Maybe someone can write a bookmarklet to do the job.


Something like
Code: Select all
javascript:document.getElementsByTagName('BODY')[0].style.textAlign='center';void 0;

dickvl

User avatar
 
Posts: 48510
Joined: July 18th, 2005, 3:25 am
April 18th, 2006, 3:11 pm

Post Posted April 18th, 2006, 3:11 pm

Thanks for the bookmarklet. :wink:
Create a new bookmark and copy/paste the code to the location field.
For easy access assign a keyword. Load the image press Alt+D to set focus to the url bar and tpye the keyword + enter to execute.

Old Greg S
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm
April 18th, 2006, 6:08 pm

Post Posted April 18th, 2006, 6:08 pm

This is suppose to center the images instead of aligning them to the left
Code: Select all
HTML > BODY:only-child > IMG:only-child { display: block !important; margin-left: auto !important; margin-right: auto !important; }

Return to Firefox General


Who is online

Users browsing this forum: janpla and 9 guests