• Resolved surfershort

    (@surfershort)


    Hi,

    ive added a widgetized area to my homepage which im pretty pleased with as a beginner, but im now stuck on how to style the search boxes. The home page is here http://festivalnet.co.uk/ and im trying to make the search boxes below the slider display horizontally rather than on top of each other.

    Any advice very appreciated

    Cheers
    Al

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter surfershort

    (@surfershort)

    anyone…..? do i need to edit the plugin css…..

    thanks

    Thread Starter surfershort

    (@surfershort)

    a shameless bump…..im still really strugling with this….is it possible? ive added some css to style the box that the widget lives in, and ive tried every css style to try and display inline but no joy what so ever…….

    Thread Starter surfershort

    (@surfershort)

    can anyone just tell me its just not possible?

    Thanks
    Al

    It could be possible. There are forced line breaks between the label and the available selection which may be rendered by, per source, Mac's ThisNThat Search Widget. So if you can access that widget source files, and delete the <br /> between the labels and selections, you’re good to go.

    Otherwise, since you’re using a premium theme, I would suggest contacting theme author for assistance. Most probably the same issue might have been resolved in authors forums if any.

    Thread Starter surfershort

    (@surfershort)

    Thanks mercime for looking, yes your right about the
    tags. Im nearly there i just need the label text to go above the drop down boxes. I cant get assistance from the theme people as ive customised it too far….

    The code for plugin widget is here http://wordpress.pastebin.ca/1946688

    do i need to add some extra css into the widget?

    Thanks very much in advance for any pointers

    I’ve revised the sections – adding breaks and div class surrounding the three sections
    // First the Top DropDown Parents
    // Now the Middle Parents
    // And the TopParents Children.
    and pasted the revised sections here.

    Add these to your theme’s style.css

    li#mtswwidget-5 select, .mtswlabel {
    font-size: 12px;
    }
    
    .columnar {
    width: 32%;
    float: left;
    }

    adjust font-size to taste, but not too large or the other column will drop down to a new row

    Thread Starter surfershort

    (@surfershort)

    Hi mercime i seem to be getting syntax errors on lines 457,475,503

    'echo "<div class="columnar"><span class='mtswlabel'>$top_label</span>";'

    Ive tried loads of different things but no joy…..any ideas?

    Thanks
    Al

    Thread Starter surfershort

    (@surfershort)

    Hi does anyone know what would cause this syntax error….? the code below works

    echo "<br /><span class='mtswlabel'>$top_label</span><br />";

    but when i add this

    echo "<div class="columnar"><span class='mtswlabel'>$top_label</span>";

    It gives me a syntax error….im still learning so im pretty clueless.

    Thanks in advance

    Thread Starter surfershort

    (@surfershort)

    Hi im nearly there the boxes are now in a horizontal line i just need the labels to appear above the boxes……. festivalnet.co.uk can someone please help me?

    I think mercimes solution works i just cant work out why i get the syntax errors in dreamweaver

    Cheers

    this works, because everything to be echoed is with in the double quotes, and is using single quotes for the class:
    echo "<br /><span class='mtswlabel'>$top_label</span><br />";

    your other line is mixing the quotes, and the first double quote of the class="columnar" breaks the echo string:

    try:
    echo "<div class='columnar'><span class='mtswlabel'>$top_label</span>";

    Thread Starter surfershort

    (@surfershort)

    Thanks Mercime, alchymyth and vtxyxxy. Youve all been very helpfull and i learnt alot!

    Cheers
    Al

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Horizontal style drop down boxes’ is closed to new replies.