Simple image frame code?
stoffer
![]()
Joined: 2005-02-10
Posts: 75 |
![]() |
In my on-going effort to customize my G2 install, I want to apply a simple white border around my pictures. In simple CSS something like this: <style type="text/css"> I have looked at the imageframe module, but couldn't find the 'solid frame' in order to modify it. I would prefer simple code (instead of .gif) so the pages load faster. Is there anywhere I could paste in this code? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
"dots" is an example of a css imageframe.. copy that one ("solid" is in the code..) |
|
stoffer
![]()
Joined: 2005-02-10
Posts: 75 |
![]() |
mindless wrote:
"dots" is an example of a css imageframe.. copy that one ("solid" is in the code..) Thanks. It worked like a charm! G2 is indeed pretty awesome for customization... |
|
nzseriocomic
![]()
Joined: 2004-07-20
Posts: 15 |
![]() |
mindless wrote:
... ("solid" is in the code..)... which is a) stupid and b)annoying. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
gee, thanks. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
nzseriocomic wrote:
which is a) stupid and b)annoying. Mm. Ya gotta love gracious users. nzseriocomic, please fix the problem and submit a patch. Thank you. -Bharat |
|
nzseriocomic
![]()
Joined: 2004-07-20
Posts: 15 |
![]() |
Um, firstly sorry. No excuse for the rude remarks other than frustration over spending several hours trying to find the code, then work out a way to fix it. It does get to me however, when presented with this opportunity to redesign G2 that only partial effort is given to true seperation of style from content. In saying that, it's easy for me to say such things when I don't have to worry over millions of lines of other more important code. I love G2 and really appreciate the work you developers do - so I retract the "stupid" comment (and will for now leave the "annoying" one in). I shall start looking into fixing this rather than criticising it. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
nzseriocomic wrote:
It does get to me however, when presented with this opportunity to redesign G2 that only partial effort is given to true seperation of style from content. In saying that, it's easy for me to say such things when I don't have to worry over millions of lines of other more important code. I can appreciate that you're frustrated (and apology accepted). We do our best to separate code from content. However, we don't have much of a user interface team and it's been very hard to make a modular application with good separation of style and content. If you have any ideas on how to improve that, we'll gladly listen. |
|
astralbaby
Joined: 2003-12-13
Posts: 35 |
![]() |
mindless wrote:
"dots" is an example of a css imageframe.. copy that one ("solid" is in the code..) excuse me.. but where in the code? is it hardcoded? if so.. where? I already looked in the template files... |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
# grep -rl solid modules/imageframe |
|
sjlim
Joined: 2005-10-21
Posts: 4 |
![]() |
'style' => 'border: 1px dashed black !important; padding:3px !important' Sorry.. I am new.. how do I make the white border using the dots code exactly please? I am lost.. |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
saul11
Joined: 2005-10-04
Posts: 109 |
![]() |
This works fine for IE, but in firefox the border 'pushes the image of the gallery plane' - I've posted this in a thread handling about the same. I don't want to be cross-posting here so I'll just link the this thread: http://gallery.menalto.com/node/31076 |
|
schrecklich
Joined: 2008-01-03
Posts: 57 |
![]() |
Can i give solid also other colors? Or is it just black and white? |
|
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
Yes, just put in a different color, like red or blue or use any other color code that's valid just search google for 'html color code' or 'css color code' and you should find the information you're looking for. |
|
schrecklich
Joined: 2008-01-03
Posts: 57 |
![]() |
sounds good, didnt know about this color codes, thanks |
|
kckal
Joined: 2008-09-12
Posts: 8 |
![]() |
wow i ask you all to step back and pontificate this. ill post my site eventually, which is behind a firewall for now. ill make sure to repeat my appreciation in my post because the ability with g2 is amazingly helpful. i do not know much with programming but you help me get to where im going and im in debt to you. gallery rules! much obliged to you all. |
|