How fix positions language flags?

Yassen

Avatar: Yassen

2009-10-13 11:48

Hello,

I have problem with positions language flags. Add language and flags - no problem. This is solution:

http://opensolution.org/Quick.Cart/docs/?id=instruction#languages_management

But positions flags - problem, like CMS demo, how?! May be default.css?

Sorry for bad english.

Please help

» Quick.Cms v2.x

cgan

Avatar: cgan

2009-10-13 13:18

Try to add:
<ul id="yourflags">
<li><a href="?sLang=pl"><img src="/img/flag_pl.jpg" alt="Polski"></a></li>
<li><a href="?sLang=en"><img src="/img/flag_en.jpg" alt="English"></a></li>
</ul>
Then in default.css add something like this:
#yourflags {float:right; padding-right:15px; list-style:none;}

cgan

Yassen

Avatar: Yassen

2009-10-13 13:55

Thanks, but not work. Flags no change position and visible in left as list. May be wrong something in code:

#yourflags {float:right; padding-right:15px; list-style:none;}

or no connection for <ul id="yourflags"> and #yourflags ?

cgan

Avatar: cgan

2009-10-13 16:14

All right, try this instead in templates/container.tpl
<div id="yourflags"><a href="?sLang=pl" title="Polski"><img src="/img/flag_pl.jpg" /></a><a href="?sLang=en" title="English"><img src="/img/flag_en.jpg" /></a>
</div>

cgan

Yassen

Avatar: Yassen

2009-10-13 19:20

Thank you very much cgan!

This works. But need small correction in CSS code for normal vertical and horizontal position:

#yourflags {float:right; margin:12px 15px 12px 0; list-style:none;}

Nice day from Sofia,

Yassen

cgan

Avatar: cgan

2009-10-13 19:42

Yassen - you can also remove list-style:none; from CSS code. I forgot to delete it.

cgan

Back to top
about us | contact