www.webdeveloper.com
Results 1 to 3 of 3

Thread: button positioning help

  1. #1
    Join Date
    Sep 2010
    Posts
    14

    button positioning help

    I want to add 3 buttons to a form. I want them all to be just under the last label "Wprowadz tekst". For some reason they're aligning below the textarea.... can any1 help me out?

    here's the html

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Zadanie 1</title>
    <link href="style/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/changeColor.js"></script>
    <script type="text/javascript" src="js/form.js"></script>
    <script type="text/javascript" src="js/quotes.js"></script>
    <script type="text/javascript" src="js/jQuery.js"></script>
    <script type="text/javascript" src="js/autoresize_jQuery_Plugin.js"></script>
    
    <script type="text/javascript" src="js/textarea.js"></script>
    <script type="text/javascript">$(document).ready( function() {$('textarea#tekst').autoResize()});</script>
    </head>
    <body>
        
        <!-- Main wrapper for the whole content -->
        <div class="main">           
    
            <!-- Header -->
            <div id="header">
                <h1><span>Lorem ipsum</span> dolor sit amet...</h1>
    
            </div>
            
            <!-- End Header -->
            
            <!-- Form wrapper -->
                <div class="form_wrapper">
                
                    <!-- Form id div -->
                    <div id="form">
                        <label for="sections" id="wybierz">Wybierz sekcje</label>
                        <select id="sections">
    
                            <option value="sekcjaA">Sekcja A</option>
                            <option value="sekcjaB">Sekcja B</option>
                            <option value="sekcjaC">Sekcja C</option>
                        </select>
                        
                        <!-- Chose font -->
                        <label for="font" id="choseFontLabel">Wybierz typ/ rozmiar czcionki<abbr title="Wybierz typ oraz rozmiar czcionki">(?)</abbr></label>
    
                        <select id="font">
                            <option value="Arial">Arial</option>
                            <option value="Comic Sans Ms">Comic Sans MS</option>
                            <option value="Courier New">Courier New</option>
                            <option value="Georgia">Georgia</option>
                            <option value="Impact">Impact</option>
    
                            <option value="Tahoma">Tahoma</option>
                            <option value="Times New Roman">Times New Roman</option>
                            <option value="Verdana">Verdana</option>
                            <option value="Geneva">Geneva</option>
                            <option value="Trebuchet MS">Trebuchet MS</option>
                        </select>
    
                        <!-- End chose font -->
                        
                        <!-- Chose font size -->
                        <select id="fontSize">
                            <option value="9">9px</option>
                            <option value="10">10px</option>
                            <option value="11">11px</option>
                            <option value="12">12px</option>
    
                            <option value="13">13px</option>
                            <option value="14">14px</option>
                            <option value="15">15px</option>
                            <option value="16">16px</option>
                            <option value="17">17px</option>
                            <option value="18">18px</option>
    
                            <option value="19">19px</option>
                            <option value="20">20px</option>
                        </select>
                        <!-- End chose font size -->
                        
                        <!-- Chose line height -->
                        <label for="lineHeight" id="lineHeightLabel">Wybierz wysokosc interlini/ odstep miedzy znakami</label>
                        <select id="lineHeight">
    
                            <option value="8">8px</option>
                            <option value="10">10px</option>
                            <option value="11">11px</option>
                            <option value="12">12px</option>
                            <option value="13">13px</option>
                            <option value="14">14px</option>
    
                            <option value="15">15px</option>
                            <option value="16">16px</option>
                            <option value="17">17px</option>
                            <option value="18">18px</option>
                            <option value="19">19px</option>
                            <option value="20">20px</option>
    
                            <option value="21">21px</option>
                            <option value="22">22px</option>
                            <option value="23">23px</option>
                            <option value="24">24px</option>
                            <option value="25">25px</option>
                            <option value="26">26px</option>
    
                            <option value="27">27px</option>
                            <option value="28">28px</option>
                            <option value="29">29px</option>
                            <option value="30">30px</option>
                           </select>
                        <!-- End chose line height -->
                        
                        <!-- Chose letter spacing -->
    
                        <select id="letterSpacing">
                            <option value="1">1px</option>
                            <option value="2">2px</option>
                            <option value="3">3px</option>
                            <option value="4">4px</option>
                            <option value="5">5px</option>
    
                            <option value="6">6px</option>
                            <option value="7">7px</option>
                            <option value="8">8px</option>
                            <option value="9">9px</option>
                            <option value="10">10px</option>
                        </select>
    
                        <!-- End chose letter spacing -->    
                        
                        <select id="fontStyle">
                            <option value="Normal">Font-style: Normal</option>
                            <option value="Italic">Font-style: Italic</option>
                            <option value="Bold">Font-weight: Bold</option>
                            <option value="normal">Font-weight: Normal</option>
                            
                        </select>
    
                        
                                     
                        <label for="tekst" id="wprowadz">Wprowadz tekst</label>
                        <textarea cols="45" rows="5" name="tekstForm" id="tekst" onclick="clearTextarea();"> </textarea>                   
                        
                        
                                           
                        
                        
                        <label for="add" id="addLabel">Dopisz <abbr title="Dopisz do wybranej sekcji">(?)</abbr></label>
                        
                        <input type="submit" value="PL" id="PL" />
                        <input type="submit" value="ENG" id="ENG" />
                        <input type="submit" value="Lorem..." id="lorem" /> 
                        
                        
                        <input type="checkbox" value="Dodaj" id="add" />
                        <input type="submit" value="Wykonaj" id="wykonaj" onclick="copyText();" />
    
                        <input type="submit" value="Wyczysc Formularz" id="clearAll" onclick="clearAll();" />
                    
                    </div>
                    <!-- End Form id div -->
                    
                </div>
                <!-- End Form wrapper -->

  2. #2
    Join Date
    Sep 2010
    Posts
    14
    more html:

    Code:
    <!-- Content wrapper -->
            <div class="content">
                
                <!-- Quote(s) wrapper -->
                <div class="quotes_wrapper">
    
                    
                    <!-- Quotes -->
                    <div id="quotes">
                        Textblock for quotes
                    </div>
                    <!-- End quotes -->               
                  
                </div>
                <!-- End quotes wrapper -->
                
                
                
                <!-- Wrapper for all section - to set the height -->
                <div class="sections_wrapper" id="clearfix">
                
                    <!-- Section A Wrapper -->
    
                    <div class="section1_wrapper">
                        <h1>Sekcja A</h1>
                        
                            <!-- Section A  -->
                            <div id="section1">
                            
                                <!-- section1Text -->
                                <div id="section1Text">
                                
                                </div>
                                <!-- End section1Text -->
    
                                
                                
                                <!-- Color Bars Wrapper-->
                                <div class="color_wrapper">
                                
                                    
                                    <a class="color1" id="section1Color1" href="javascript:changeColor(1, 1)"> &nbsp; </a>
                                    <a class="color2" id="section1Color2" href="javascript:changeColor(1, 2)"> &nbsp; </a>
                                    <a class="color3" id="section1Color3" href="javascript:changeColor(1, 3)"> &nbsp; </a>
                                    <a class="color4" id="section1Color4" href="javascript:changeColor(1, 4)"> &nbsp; </a>
    
                                    <a class="color5" id="section1Color5" href="javascript:changeColor(1, 5)"> &nbsp; </a>
                                    <!--Color bars -->
                                    
                                </div>
                                <!-- End of Color Bars Wrapper -->
                            </div>
                            <!-- End Section A  -->
                        
                    </div>
                    <!-- End Section A wrapper -->
    
                    
                    <!-- Section B wrapper -->
                    <div class="section2_wrapper">
                        <h1>Sekcja B</h1>
                        
                            <!-- Section B -->
                            <div id="section2">
                            
                                <!-- Section2Text - for text layout -->
                                <div id="section2Text">
                                
                                </div>
    
                                <!-- End section2Text -->
                                
                                <!-- Color Bars Wrapper-->
                                <div class="color_wrapper">
                                
                                    <!--Color bars -->
                                    <a class="color1" id="section2Color1" href="javascript:changeColor(2, 1)"> &nbsp; </a> 
                                    <a class="color2" id="section2Color2" href="javascript:changeColor(2, 2)"> &nbsp; </a> 
                                    <a class="color3" id="section2Color3" href="javascript:changeColor(2, 3)"> &nbsp; </a> 
                                    <a class="color4" id="section2Color4" href="javascript:changeColor(2, 4)"> &nbsp; </a> 
                                    <a class="color5" id="section2Color5" href="javascript:changeColor(2, 5)"> &nbsp; </a> 
                                </div>
    
                                <!-- End of Color Bars Wrapper -->
                                
                            </div>
                            <!-- End section B -->
                        
                    </div>
                    <!-- End ection B wrapper -->
                    
                    <!-- Section C wrapper -->
                    <div class="section3_wrapper">
                        <h1>Sekcja C</h1>
    
                        
                            <!-- Section C -->
                            <div id="section3">
                            
                                <!-- section3Text -->
                                <div id="section3Text">
                                
                                </div>
                                <!-- End section4Text -->
                                
                                <!-- Color Bars Wrapper-->
                                <div class="color_wrapper">
                                
                                    <!--Color bars -->
    
                                    <a class="color1" id="section3Color1" href="javascript:changeColor(3, 1)"> &nbsp; </a> 
                                    <a class="color2" id="section3Color2" href="javascript:changeColor(3, 2)"> &nbsp; </a> 
                                    <a class="color3" id="section3Color3" href="javascript:changeColor(3, 3)"> &nbsp; </a> 
                                    <a class="color4" id="section3Color4" href="javascript:changeColor(3, 4)"> &nbsp; </a> 
                                    <a class="color5" id="section3Color5" href="javascript:changeColor(3, 5)"> &nbsp; </a> 
                                </div>
    
                                <!-- End of Color Bars Wrapper -->
                                
                            </div>
                            <!-- End Section C -->
                        
                    </div>
                    <!-- End Section C wrapper -->
                </div>
                <!-- End of content wrapper -->
                
                
            <!-- End of Sections_wrapper -->
            </div>
    
            
           <!-- Footer wrapper -->
            <div class="footer_wrapper">
            
                <!-- Footer -->
                <div id="footer">
                    
                </div>
                <!-- End Footer -->
              
            </div>
    
            <!-- End Footer wrapper -->
            
       </div>
       <!-- End Main wrapper -->
       
        
        
    </body>
    </html>

    css

    Code:
    @charset "utf-8";
    /* CSS Document */
    
    /* Body */
    body {background:url(../images/tlo.png) repeat-x; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0px}
    h1 {color: #FFF;}
    
    
    /* Clear fix */
    #clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden;}
    #clearfix {display: inline-table;}
    * html #clearfix {height: 1&#37;}
    #clearfix {display: block;}
    
    /* Links */
    a:link, a:visited {font-weight: bold; color:#959595; text-decoration: none;}
    a:hover {text-decoration: underline;}
    
    abbr {font-style: italic;}
    
    
    /*Main Div */
    div.main {height: 900px; width: 960px; margin: auto; margin-top: 0;}
    
    
    /* Content div */
    div.content {background-color: #0076a3; }
    
    
    /* Header */
    div#header {text-align: right; clear: both; margin-top: 40px; margin-bottom: 0; padding: 0;}
    
    div#header span {color: #0076a3;}
    
    div#header h1 {color: #ebebeb; font-size: 48px; margin-bottom: 10px; padding: 0; letter-spacing: -0.5px;}
    
    
    /* Quotes */
    div.quotes_wrapper {width: 220px; height: 200px; background-color: #6dcff6; border: 10px solid #FFF; right: 20px; bottom: 20px; position: relative; }
    
    div#quotes {margin: auto; font-weight: bold; font-style: italic; color: #FFF; font-size: 18px; margin: 30px; letter-spacing: 0px; line-height: 20px;}
    
    
    /* Form */
    div.form_wrapper {position: relative; float: right; width: 680px; padding-top: 50px; top: 10px;}
    
    div#form select, div#form textarea {max-width: 415px; min-width: 415px; display: block; margin-bottom: 15px}
    div#form textarea {height: 80px; margin-top: 20px; padding: 0;}
    div#form select#font {max-width: 250px; min-width: 250px; display: block; margin-bottom: 15px; float: left;}
    div#form select#fontSize {max-width: 150px; min-width: 150px; display: block; margin-left: 15px; margin-bottom: 15pz; float: left; }
    div#form select#lineHeight {max-width: 115px; min-width: 115px; display: block; margin: 10px 15px 25px 0; float: left;}
    div#form select#letterSpacing {max-width: 120px; min-width: 120px; display: block; margin-bottom: 25px; margin-top: 10px; float: left;}
    div#form select#fontStyle {max-width: 150px; min-width: 150px; display: block; margin: 10px 0 25px 15px; float: left;}
    
    div#form label {color: #FFF; border-bottom: 1px dotted #FFF; font-size: 12px; float: left; clear: left; width: 180px; margin-right: 50px; margin-bottom:15px; padding: 0;}
    
    div#form input#wykonaj {width: 100px; height: 25px; background-image:url(../images/tlo_button.png); color: #FFF; font-weight: bold; float: left; margin-left: 150px; border: none; font-size: 12px; text-align: center; letter-spacing: -0.5px; padding-bottom: 3px;}
    div#form input#clearAll {width: 150px; height: 25px; background:url(../images/tlo_button.png); color:#FFF; font-weight: bold; border: none; font-size: 12px; text-align: center; margin-left: 20px;}
    
    
    div#form input#PL, div#form input#ENG, div#form input#lorem {height: 25px; background:url(../images/tlo_button.png); border: none; text-align: center; font-weight: bold; font-size: 12px; color:#FFF; margin-right: 15px; float: left; display: block; margin-top: 50px;}
    
    
    div#form label#addLabel {float: left; width:auto; margin: 0;}
    div#form input#add {float: left; margin-right: 10px;}
    
    div#form label#choseFontLabel abbr {border: none;}

  3. #3
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Apply a font to the input. IE and Fx are using different fonts.
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.12354 seconds
  • Memory Usage 2,897KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (3)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates