WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • Images always aligned left instead
  • Print
Pages: [1]   Go Down

Author Topic: Images always aligned left instead  (Read 5932 times)

as-lahaye

  • Guest
Images always aligned left instead
« on: August 15, 2008, 08:19:23 PM »
Hi guys,

I'll have probably overread it like the last time.. but I find my images always aligned left.

In the pages WYSIWYG editor it is aligned properly but when viewing the live page it sticks to the left.

http://gerdine-hoeve.studio-lahaye.nl

Please choose "Nederlands" as language as the other languages are not yet finished..
the "home" page "Gerdine Hoeve" contains the picture I'm referring to.

thank you in advance!!
Logged

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Images always aligned left instead
« Reply #1 on: August 15, 2008, 09:57:06 PM »
you should define a css for your editor calles "editor.css" which is then parsed by the FCK WYSIWYG Editor. There you define the CSS classes. Then you need to also put the class of your image into your screen.css file so that it can be found.

Have a look here: https://forum.WebsiteBaker.org/index.php/topic,10381.0.html

cheers

Klaus
Logged

Offline marathoner

  • Posts: 495
Re: Images always aligned left instead
« Reply #2 on: August 16, 2008, 04:11:13 AM »
I looked at your page and you have your IMG tag styled to be left aligned so of course, it's going to be left aligned. Just look at your page source and you will see that your IMG tag has "style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px; margin-left: 5px; padding-top: 5px; align: left"

Regarding kweitzel's recommendation, a quick way is to make your editor.css file a copy of your screen.css file and then rip out any "wrappers" or ids/classes that aren't used by your content (e.g. navigation or footer ids and classes).

« Last Edit: August 16, 2008, 04:29:16 AM by marathoner »
Logged

as-lahaye

  • Guest
Re: Images always aligned left instead
« Reply #3 on: August 16, 2008, 02:32:13 PM »
thank you for your quick responses.

ok adapting the XML sounds easier. I viewed the screen.css and from where i can see allmost everything in there are classes.

anyone has an example of the editor.css for me? i'm just a beginner and do not know how to write my own css content.

the thing I don't get is that FCK WYSIWYG editor gives you an option when inserting an photo where you want to align the image. So I expect that option to work when I choose "align right"..?

thanks again!


UPDATE:

I managed to get the value to "Right" but the image still alignes left??
Code: [Select]
<img height="133" hspace="2" width="200" align="right" vspace="2" border="1" alt="" src="http://gerdinehoeve.studio-lahaye.nl/media/website_sfeer_fotos/stalgang1.jpg" />
Yes I did clear my cache and cookies :)
« Last Edit: August 16, 2008, 06:30:00 PM by as-lahaye »
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Images always aligned left instead
« Reply #4 on: August 17, 2008, 12:22:25 AM »
There is also a ".main img" entry in your css that says "float: left;"
Just remove that one.

(currently the image has "align=center". that one is not allowed in an img tag. Read more on img align here)

Ruud
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Off-Topic »
  • Images always aligned left instead
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2