Youjoomla Support Forums (https://www.youjoomla.com/joomla_support/index.php)
-   Joomla Tutorials (https://www.youjoomla.com/joomla_support/forumdisplay.php?f=28)
-   -   padding around inserted images (https://www.youjoomla.com/joomla_support/showthread.php?t=1274)

thungrac221 07-25-2008 02:44 PM

padding around inserted images
 
Hi,
hope I post to the right forum.
I just need to know how to put padding around images...left, right, bottom, etc...
Images inserted in content is too close to text, need some space. I juse Joomla 1.5

Thank you.

neo 07-25-2008 02:48 PM

Re:padding around inserted images
 
I would use editor to place padding , takke a look at WYSIWYG Pro it gives you the option to add padding around it , or if you want to go global you can add

img{
padding:3px;
}

to template_css.css

or

do this

.imgpad{
padding:3px;
}


when placing image in editor add class

<img src=\image\ class=\imgpad\

thungrac221 07-25-2008 02:50 PM

Re:padding around inserted images
 
wow, that was fast...
thanks...will try...

neo 07-25-2008 02:52 PM

Re:padding around inserted images
 
any time, watch for global command , it will add padding to all images , best option is good editor that let you add padding around images

thungrac221 07-25-2008 03:20 PM

Re:padding around inserted images
 
okay,
maybe Im not doing it right...

tried this:
img{
padding:3px;
}

to template_css.css

didnt work
----------------
.imgpad{
padding:3px;
}
this, Im a little confused...& if Im confused, whoever maintains this will probably be aslo.

However, how exactly do I do this? Put this code in the template_css.css
.imgpad{
padding:3px;
}

then put this where?

<img src=\image\ class=\imgpad\

does \image\ means the path do that image?

thank you for your help...


All times are GMT -4. The time now is 06:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.