Image spacing is not working...

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Image spacing is not working...

Post by update »

This is for you to be able to survive the entry lessions - I'll give you something to play with :mrgreen: ;)

Code: Select all

.My_Images_Here img {padding: 20px;}
.imagelisttd {padding:20px;}
.imagelistimg {padding:20px;}
If you wrap all this with .My_Images_Here you could easily taget it with something like

Code: Select all

.My_Images_Here td...
or something similar ;)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Image spacing is not working...

Post by Jensensen »

baklavoni wrote:...I tried all, but still no success. :(
At same link http://www.kompas.ba/cms/index.php?about_us
...

Code: Select all

td img {padding-bottom: 20px;}
I think it's working very well for your CP images div on this page:

add/change to:

Code: Select all

td img {padding-bottom: 20px; padding-right: 20px;}
reload and you'll see....
Jensensen wrote:TIP:
DO NOT RELY ON BUILT IN SPACER, but think about your template and read TOP DOWN your source code/CSS --> from <body..ID...class> to the item located on your page, you want to apply you styles....
Add your own classes to --> your own templates...
TIp#2
to have this styles applied ONLY to --> images within a -->table --> within your --> template div class="My_Images_Here"

Code: Select all

td .My_Images_Here img {padding: 0 20px 20px 0;}
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

Re: Image spacing is not working...

Post by baklavoni »

claus wrote:This is for you to be able to survive the entry lessions - I'll give you something to play with :mrgreen: ;)

Code: Select all

.My_Images_Here img {padding: 20px;}
.imagelisttd {padding:20px;}
.imagelistimg {padding:20px;}
This works for IMAGES CP (still not working for IMAGES <DIV>, but I need only one of them working) :) ! Thanks! :D
Jensensen wrote: add/change to:

Code: Select all

td img {padding-bottom: 20px; padding-right: 20px;}
reload and you'll see....
After few tries I manage to get this code work! Only one thing wasn't OK - my template. It was all messed up :(
Jensensen wrote:TIP:
DO NOT RELY ON BUILT IN SPACER, but think about your template and read TOP DOWN your source code/CSS --> from <body..ID...class> to the item located on your page, you want to apply you styles....
Add your own classes to --> your own templates...

TIp#2
to have this styles applied ONLY to --> images within a -->table --> within your --> template div class="My_Images_Here"

Code: Select all

td .My_Images_Here img {padding: 0 20px 20px 0;}
Thanks, You make me realize that the best way is to make my own template.
In older versions of phpwcms, built in spacer was working, so I used to use it. Unfortunately, I didn't know how to make my template.
Now, with Your big help, I know (hopefully) :)

Again THANKS a lot BOTH JENSENSEN and CLAUS!!!
Both of you and Flip-Flop are the ones who always know how to get things working. You are trully gurus ;)
Thanks!
There is no page like home page...
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Image spacing is not working...

Post by update »

:oops:
see you later, alligater :wink:
EDIT: alligator :mrgreen:
EDIT again: you the could be forced to answer: in a while, crocodile :mrgreen: :mrgreen:
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

Re: Image spacing is not working...

Post by baklavoni »

claus wrote::oops:
see you later, alligater :wink:
EDIT: alligator :mrgreen:
EDIT again: you the could be forced to answer: in a while, crocodile :mrgreen: :mrgreen:
in a while, crocodile... ;)

Hehe,... I remember that cartoon :) Willy the gator ;)
There is no page like home page...
Post Reply