0
Welcome Guest! Login
0 items Join Now

Country Selector Drop Down

    • Tim Miller's Avatar
    • Tim Miller
    • Elite Rocketeer
    • Posts: 949
    • Thanks: 7
    • Video, Joomla, Grfx

    Country Selector Drop Down

    Posted 11 years 11 months ago
    • Hey Guys,

      I'm looking for a simple way to duplicate the drop-down here:
      http://www.christar.org/
      This image is hidden for guests.
      Please log in or register to see it.
      This image is hidden for guests.
      Please log in or register to see it.

      This is definitely out of my comfort zone, so I'd appreciate any assistance.
      I'm basically wanting to place this inside a top module.
      Thanx!
    • ----
      Tim Miller
      timmiller.net
  • Re: Country Selector Drop Down

    Posted 11 years 11 months ago
    • Hello Tim,

      I'm not sure how advanced you are as a developer, but have you tried inspecting the HTML and CSS with Firebug?
    • Kind regards,
      Reggie

      Learn to code for free.
      www.freecodecamp.org
    • Tim Miller's Avatar
    • Tim Miller
    • Elite Rocketeer
    • Posts: 949
    • Thanks: 7
    • Video, Joomla, Grfx

    Re: Country Selector Drop Down

    Posted 11 years 11 months ago
    • Reggie,

      I'm not much of a developer. I've created my own drop down in DW, but it's nothing fancy. Would really love the mojo of the existing one.

      Here's what I've done:
      http://christar.org/imi6/get-involved/search-site.html
      Obviously, I'll have to work with the module positions and stuff, but it works. Just not very pretty.

      Totally open for suggestions.
    • ----
      Tim Miller
      timmiller.net
    • Tim Miller's Avatar
    • Tim Miller
    • Elite Rocketeer
    • Posts: 949
    • Thanks: 7
    • Video, Joomla, Grfx

    Re: Country Selector Drop Down

    Posted 11 years 11 months ago
    • Ok,

      I did find this CSS page, but am not quite sure how to implement within Joomla:

      It's located here: http://www.christar.org/css/languageswitcher.css but won't open the stylesheet in a browser...
      * { margin: 0; padding: 0; }
       
       
      header {
           display: block;
           background: #777;
           height: 50px;
           position: relative;
           min-width: 600px;
           }
           
           header h1 {
                font: bold 24px Arial, Helvetica, sans-serif;
                color: #fff;
                position: absolute;
                left: 20px;
                top: 8px;
                }
       
      #country-select {
           position: absolute;
           top: 13px;
           right: 15px;
           width: 180px;
           }
       
      /* rought form styles for when JS is disabled */
       
      #country-select form {
           width: 180px;
           padding: 0;
           }
       
      #country-select select,
      #country-select input {
           display: inline;
           padding: 0;
           margin: 0;
           }
           
      /* JS-created definition list */
       
      .dropdown dd { position: relative; }
       
      .dropdown a {
           text-decoration: none;
           outline: 0;
           font: 12px Arial, Helvetica, sans-serif;
           display: block;
           width: 130px;
           overflow: hidden;
           }
       
      .dropdown dt a {
           background: #242424;
           border: 1px solid #919191;
           padding: 3px 10px 4px 10px;
           -webkit-border-radius: 5px;
           -moz-border-radius: 5px;
           border-radius: 5px;
           color: #fff;
           }
       
           .dropdown dt a.active {
                background: #db9418;
                -webkit-border-bottom-left-radius: 0;
                -webkit-border-bottom-right-radius: 0;
                -moz-border-radius-bottomleft: 0;
                -moz-border-radius-bottomright: 0;
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
                border-bottom: 1px dotted #676768;
                -moz-box-shadow: 0 3px 7px rgba(0,0,0,.5);
                -webkit-box-shadow: 0 3px 7px rgba(0,0,0,.5);
                box-shadow: 0 3px 7px rgba(0,0,0,.5);
                color: #fff;
                }
       
      .dropdown dd ul {
           background: #7f7f7f;
           border: 1px solid #676768;
           color: #C5C0B0;
           display: none;
           position: absolute;
           z-index: 999;
           top: 0;
           left: 0;
           padding: 2px 0 5px 0;
           list-style: none;
           border-top: none;
           margin: 0;
           -webkit-border-bottom-right-radius: 5px;
           -webkit-border-bottom-left-radius: 5px;
           -moz-border-radius-bottomright: 5px;
           -moz-border-radius-bottomleft: 5px;
           border-bottom-right-radius: 5px;
           border-bottom-left-radius: 5px;
           -moz-box-shadow: 0 3px 7px rgba(0,0,0,.5);
           -webkit-box-shadow: 0 3px 7px rgba(0,0,0,.5);
           box-shadow: 0 3px 7px rgba(0,0,0,.5);
           }
       
           .dropdown dd ul li a {
                padding: 2px 10px;
                }
       
           .dropdown dd ul li a span,
           .dropdown dt a span {
                float: left;
                width: 16px;
                height: 11px;
                margin: 2px 6px 0 0;
                background-image: url(../site_files/flags.png);
                background-repeat: no-repeat;
                cursor: pointer;
                }
       
                .us a span { background-position: 0 0 }
                .ca a span { background-position: -16px 0 }
                .hk a span { background-position: -32px 0 }
                .de a span { background-position: -48px 0 }
                .nl a span { background-position: -64px 0 }
       
           .dropdown dd ul li a em,
           .dropdown dt a em {
                font-style: normal;
                float: left;
                width: 100px;
                cursor: pointer;
                }
       
           .dropdown dd ul li a em {
                color: #e0e0e0;
                }
       
                .dropdown dd ul li a:hover { background-color: rgba(255,255,255,.1); }
                .dropdown dd ul li a:hover em { color: #fff; }
    • ----
      Tim Miller
      timmiller.net
  • Re: Country Selector Drop Down

    Posted 11 years 11 months ago

Time to create page: 0.088 seconds