CSS float question

I am fairly new to HTML5 and CSS. I try to get the text box 'Âge' float to the right of the buttons ' Age/DOB. Everything I tried failed. Any help would be appreciated.

My HTML code:

< head >

< meta charset = "utf-8" >

< title > rate calculator < /title >

< link href = "FNcss.css" rel = "stylesheet" type = "text/css" > "

" < link href =" http://code.jQuery.com/Mobile/1.3.0/jQuery.Mobile-1.3.0.min.CSS "rel ="stylesheet"type =" text/css"> "

" < script src =" http://code.jQuery.com/jQuery-1.11.1.min.js "type =" text/javascript"> < / script > "

" < script src =" http://code.jQuery.com/Mobile/1.3.0/jQuery.Mobile-1.3.0.min.js "type =" text/javascript"> < / script > "

< / head >

< body >

< div data-role = 'page' id = "page1" >

< div data-role = 'content' id 'content' = >

< div data-role = "fieldcontain" id = "btnsAge" >

< fieldset data-role = 'indicated' data-type = "horizontal" id = "ageSelect" >

< input type = "radio" name = "age" id = "age_0" value = "" / > "

< label for = "age_0" > age < / label >

< input type = "radio" name = "age" id = "age_1" value = "" / > "

DOB < label for = "age_1" > < / label >

< / fieldset >

< / div >

< div data-role = "fieldcontain" id = 'txtAge' style = "float: right" >

< Input placeholder = "Âge" type = "text" name = "textinput" id = "textinput" value = "" / > "

< / div >

< / div >

< / div >

< / body >

< / html >

My local CSS:

@charset "utf-8";

{#btnsAge}

Display: block;

float: left;

Width: 150px;

}

{#txtAge}

Display: block;

float: right;

align: right;

height: 30px;

Width: 60px banner;

}

My results so far:

No matter what I do, I can't do the textbox age to align horizontally with the buttons.

RateCalc.JPG

Ah, you have a code from the jquery css causing it to go to the next line.

With your current html code, you must disable or override the clear: both in the bar of the IU, ui-body of the jquery.mobile file selector - 1.3.0.min.css

Tags: Dreamweaver

Similar Questions

  • Need help CSS Float, 2 columns

    I am a student doing a presentation of 2 fixed-width columns using float following a lesson in a book, hard to accomplish what I want to and could use some advice please.

    I want the main table to float on the left, and the wrapper of the background shines through to make the column, second right. I can't focus the image and text below the column on the right, the best way. I tried to put the picture and the text in a div tag, but could not look right and it went out. I am a novice at this so it must be simple. And validate too. TIA!

    HTML

    CSS

    now:

    splash-now.jpg

    wanted:
    splash_want.jpg

    TheOriginal150mph wrote:

    Thanks Osgood. It seems now almost exactly how I had imagined! I could never came up with this! Box-sizing... wow...

    Editing, I want for this index page - I have no chance moving to the top of the 'land as muse' script fonts png and jpg of hiker in the div. .main that something prevents them from going up.

    I used a technique of replacement header text image that I can use a special font for my H2, so I thought that was it. I tried clear float on the png and jpg but no luck.

    Advice please!

    Thank you

    PS - the
    of are just for the stacking of artistic texts

    Margin: 0; padding: 0; the h2 as a css selector below:

    H2 {}

    / * - header text image replacement technique * /.

    text-indent: 100%;

    white-space: nowrap;

    overflow: hidden;

    margin: 0;

    padding: 0

    }

  • Can CSS FLOATS - someone point me to the great tutorial?

    I know the basics of tanks but have some problems.

    I searched for tutorials on google but didn't find exactly the awnser (or it was the site of technique to understand)

    I can do this:

    <div id="Container">
    <div id="Header"><p>HEADER</p></div>
    <div id="Menu"><p>Menu</p></div>
    <div id="Content"><p>Content</p></div>
    <div id="Footer"><p>FOOTER</p></div>
    </div>
    
    #Container{
    
    position:absolute;
    margin:0 auto; 
    width:80%;
    background:none;
    height:auto;
    height:100%; 
    min-height:100%;
    margin-left: 10%;
    margin-right: 10%;
    
    }
    #Header{
    height: 195px;
    width:100%;
    }
    #Menu{
    float: left;
    width: 172px;
    height: 75px;
    background: none;
    position: relative;
    }
    #Content{
    margin-left: 220px;
    height: auto;
    min-height:50%;
    width: auto;
    max-width:100%;
    min-width:77%;
    padding: 20px 20px 20px 20px;
    border-left: solid 1px #999;
    border-bottom: solid 2px #999;
    border-top: solid 1px #999;
    border-right: solid 2px #999;
    }
    #Footer{
    
    height: 50px;
    width:100%;
    
    }
    
    

    One of the problems is that the content is 100% of the contribution.

    So, if I fill it with a lot of text he lines out great, but if I get a single word in the div it will wrap the div arround the word.

    Normally I also happens to the height. But who is supposed to be.

    Is it with full text:

    __________________________

    | test test test test test test test.

    |_________________________|

    Is this single word:

    ____

    | test |

    |___|

    That should be:

    __________________________

    |test                                       |

    |_________________________|

    But I don't want a fixed width in pixels! I want to stretch a little so that it displays Nice on high resolution more low resolution.

    It's a bar of menus fixed floating to the left of the content. How should I deal with the content, so it will aways aligned at the end of the header?

    < HEADER > 100% width of the container

    < MENU > < CONTENT > fixed width 172px - remaining content needs to stretch so his double up the right headers.

    ________________________________________________________________________________________

    Also, I need to know how to deal with the floats in floats.

    My footers behavior wrong, if I make my small browsers window, the foot is under the content but its behind the menu.

    Its because I used Spry panels which are treated as fleet also. And I don't know how to clear the footer of content as well as the menu.

    For example, if I have the above configuration, and I want to treat the contained as a 'Container' new div which floats in it, how?

    Any help, links to good tutorials, etc. would be nice.

    If you see the problem of footer and align problem: http://www.wientjesvoegwerk.nl/

    Note the alignment of the content. Press "INFO" and notice the change of content. Its width is smaller then assumed. It must always have the same width.

    Now make your browser window small (always on the 'INFO' page) you just do the small width.

    Now, you will see the footer is behind the menu bar, but at the bottom of the content.

    So I need help or a good tutorial on how to solve this problem.

    5 types of CSS positioning:

    • Static (default)
    • Relative
    • Absolute
    • Fixed (similar to the absolute, but not supported by all browsers)
    • Float

    Learn CSS positioning in 10 easy steps-

    http://www.Barelyfitz.com/screencast/HTML-training/CSS/positioning/


    Float tutorials-

    http://CSS.maxdesign.com.au/Floatutorial/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Floating question

    I have a sidebar div floated left (with a background gif) and a div of the main content (with a dark gray background) that they rest right next to each other. When I insert an image in the main content div, the two divs remain in place, but the content is pushed below (the inserted picture is stuck floating in its parent div).

    See attachment.

    So far, floating divs seems to work perfectly until I'm actually trying to add content inside these DIV tags Then he collapses. Not good. All suggested fixes?

    Picture 4 14-37-34.png

    There are many tools in the Toolbox of the developer. Sometimes one tool seems more appropriate, sometimes another.

    Your best bet is to learn the two and make your own choices, depending on how it will be used. I think a lot of how the code is links used in the way you consider the site build you you have conceptualized and how the pieces you are assembling for the build, and those which are necessarily very individual, developer to developer.

    An unnoticed statement of unclosed CSS or extra space where it is not can break code.

    I think you have it run properly by deleting and rewriting. This is a much cleaner to try to jigger procedure approach that there is a mistake somewhere.

    You must also set the Validation of the tools use to help verify your code for you. It is an integral part of Dreamweaver, and many developers are also using the validator on the Web tools.

    Z

  • Rule to the CSS style question: positioning of block next to the image level

    Hello

    I have this site for example: http://www.ecstechnics.com/modules/page.phtml?dimensionid=18 & pageid = 24 and I had a previous question on this topic: http://forums.adobe.com/thread/427154?tstart=0. Here, I asked for a way to draw a line of fixed length under a header < h1 > (resolved) and a way to draw a line under a heading < h2 > where the line was shortened by an image inline (left or right header, as can be seen in the example of the ecstechnics.com site).

    The problem however is not yet solved for an image on the LEFT of the header. With the above solution and a fixed width line, this line is inspired right through the image to the left.

    I need a solution for a header that is positioned to the right of the image (which I'm floating on the left) and where I want the line to start under the first letter of the heading and extends to the border of the container.

    Thanks for the tips.

    Erik

    From time to time, this is the best approach (question to rephrase in a new thread). But give the existing question some time for people to see. A few hours on a weekend is not generally enough time.

    I did that cause confusion. My apologies, it won't happen.

    Cool. It was kind of fun playing Hunt the answers in the nets - this time only! ;-)

    I hope that this is the method of work (one that we it was).

    --
    Mark A. Boyd
    Keep-on-Learnine :-)

  • rule to the CSS style question

    Hello

    I have a < h1 > and < h2 > rule of style to get the effect voor my headers as can be seen here: http://www.ecstechnics.com/modules/page.phtml?dimensionid=17 & pageid = 23

    I think the main header (< h1 >) style rule I can do easily: simply apply the correct font style and that's all.

    But for the header < h2 > I need a colored line extending the width of my liquid main content container, unless she is disturbed by a floating picture. Example on the same site: http://www.ecstechnics.com/modules/page.phtml?dimensionid=24 & pageid = 37

    The line spans a certain width (preference with my container of liquid, if it is not fixed wide), but if a picture or other object interferes, I want to shorten accordingly.

    Is this possible? All advice please?

    Thank you!!

    Erik

    CSS:

    rehydration {}

    border-bottom: 1px solid red;

    Width: 400 PX;

    }

    {of scale

    border-bottom: 1px solid red;

    Width: 100%

    }

    HTML:

    It's short


    It is wide

    Does that help?

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics |  Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB

  • CSS Float help

    I make the transition to design with tables to design with CSS. I'm having a problem getting my divs good float to align themselves with the rest of the content. For example, if my id #main - nav extends longitudinally it pushes all float down, but I need for the line upwards as (at the top of the navigation bar) and the top of the ID of #reservations. I don't know how to do this while I joined the CSS code to see if anyone can help. I'm just working with blocks of color right now to establish the layout, so it's super simple.

    Tuesday, July 22, 2008 17:59:09 + 0000 (UTC), "nowherecreative".
    wrote:

    > Unfortunately that did not work... now they all stack on top of eachother.

    has worked here! :-)

    " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ".



    CompanyName - PageName



    Content = "Tennis, dining room,
    Resort, Shopping, Tropical"/ >




    Navigation bar

    Reservations

    Video Flash

    Lorem ipsum dolor sit amet, our
    adipiscing elit.
    Nullam enim risus ut gravida.
    Praesent in sapien purus, ultrices a, varius ac, so ut,.
    enim. Maecenas in
    lectus.
    Donec in sapien in the ruts nibh
    euismod fitness. Nullam lectus mauris ac metus. Maecenas
    aliquam fitness
    Odio.
    DUIs city justo a queer. Nam augue lorem, semper
    Porta eget,.
    placerat eget,
    Purus. Suspendisse mattis nunc ligula vestibule. To the hac
    habitasse platea
    HAC.




    --

    ~ Malcolm ~ *...
    ~*

  • CSS Styles question

    I was wondering how to get the css and all styles. All I see IS the designer of CSS and I can't find simple css tabs styles that I'm used to previous versions of dreamweaver.

    Thanks for any help

    Which explains how to use the CSS Designer panels new & improved.

    CSS Designer: A tool of Visual design in Dreamweaver cc | Inspired by Adobe Magazine

    Personally, I prefer to work in mode code with features the DW code hinting.  For my workflow, it is much faster.  But some people really like the Visual Designer.  I think he should just get used to.

    Nancy O.

  • Mix ADF Faces with HTML, JavaScript, CSS, JSTL question

    Dear all,

    The project is now starting to deploy to the production server. When we try to deploy to the production server who made a lot of mistake. As this used widely used project mix ADF faces with
    HTML/JavaScript/CSS/JSTL. I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?
    There is in the project

    1 mix of tags html with ADF Faces components
    2. the use of JavaScript/CSS inline
    3. mix the JSF/ADF Faces and JSTL tags

    Help me how to address this issues as well as links to useful blog.

    JDeveloper IDE version: 11.1.1.5.0 with Webcenter
    WebLogic version: 10.3



    Best regards
    KT

    Published by: KT on May 16, 2013 21:23

    Hello

    In addition to this project widely used mixture ADF faces with HTML, JavaScript, CSS, JSTL.

    JavaScript, CSS, and JSTL is not a problem, whereas - according to the JSF version - HTML is. JSF 2 is the first version of the JSF, which allows you to mix HTML with less side effects, if you use Facelets as view declaration language.

    I would like to know what are the most error when we have mixed to use each one and how can we overcome them there?

    There is in the project

    + 1. mixture of html with ADF Faces components tags +.

    This could ruin your pages, lead to update issues and - in case of frequent use in the trees - even destroy the functionality

    + 2. online use of JavaScript / CSS +.

    Poor performance because of heavy weight pages. If you were using ADF Faces and your JS addresses the DOM instead of the architecture of client cJavaScript ADF Faces then chances are JS will fail for the components that have changed their HTML output (which has an impact on the DOM structure) or changes are not submitted to the server.

    For CSS, CSS inlineStyle not applay to the DOM element that is external, which means for example af:input the background text color will color the lavel

    + 3. mix JSTL and JSF/ADF Faces tags +.

    Dependa on how you do. JSF has postponed EL syntax, which means that EL resolves at run time, whereas JSTL resolves at compile time. So the race conditions could become a problem

    Overall, it is difficult to say if things were coded wrong in the project (although for the use of HTML you can be sure) without seeing the code. It seems that the team that built the application however did not dare to the suite of recommended practices

    Frank

  • CSS syntax question

    "Now that I have my foot in the door), are there pieces read absolutely understand how Adobe Edge uses JQuery to advanced level a little more (not that I am). The JavaScript API gives some decent clues, but this isn't ASDocs with examples of use fully annotated.

    That said, what is the correct syntax to get and set the z-index of a symbol, I have create dynamically from the prototype in the Panel resources. Presents all works, but I still have to hit the correct syntax to set the depth of the symbol, which is hide other objects I need more closely in the foreground. It works:

    playNext() {} function

    Slovak ++;

    var audioID = "slide" + Slovak;

    playSound (audioID);

    var slideID = "slide_" + Slovak;

    sym.createChildSymbol (slideID, "Stage");

    but it does not work (EC.info you can consider an alert if you do not use Commons Edge)

    EC.info (sym.$('slideID').css ('z-index'));

    EC.info (sym. $(slideID).css('z-index'));

    EC.info (sym.$('slideID').zIndex);

    EC.info (sym. $(slideID) .zIndex);

    EC.info (sym.$('slide_1').css ('z-index'));

    EC.info (sym.$('slide_1').zIndex);

    EC.info (slideID.zIndex);

    }

    I'm close to one of them? Of course, I want to set the z-index but it would be a soft step.

    I also tried defining the child object, resulting in a variable with the same attempts, but nothing sticks yet.

    var mySlide = sym.createChildSymbol (slideID, "Stage");

    EC.info ("my slide is" + mySlide);

    EC.info (sym.$('mySlide').css ('z-index'));

    EC.info (sym. $(mySlide).css('z-index'));

    EC.info (sym.$('mySlide').zIndex);

    EC.info (sym. $(mySlide) .zIndex);

    EC.info (sym.$('mySlide').css ('z-index'));

    EC.info (sym.$('mySlide').zIndex);

    EC.info (mySlide.zIndex);

    Thank you very much.

    Ah, this works in your example rect (try to set the z-index of a negative):

    function showCover() {}

    myRectangle var = sym.createChildSymbol ("Slide1", "Stage");

    myRectangle.getSymbolElement (.css({"z-index":-100});))

    }

  • video embed float question!

    Embedded videos float in front of all other objects. I had boarded a slide show widget, then I tried it outside of a widget, directly on the page... the same result! My lightbox menu items are obscured by the video at the opening. I tried to move the video backward and by moving the widget embed on the front, but not luck. I tried youtube (even the old code), and also a facebook embed. Only firefox, half of the lighbox objects are hidden, and some are visible, but why? What can I do? Here is the link:

    www.tightenupgirl.BusinessCatalyst.com

    Add wmode = "transparent" to the embed tag (besides the wmode parameter in the object tag).

    http://www.YouTube.com/v/B6hzf_gbuj0?version=3&HL=en_US&rel=0 "" >http://www.youtube.com/v/B6hzf_gbuj0?version=3&hl=en_US&rel=0 "type =" application/x-shockwave-flash"width ="560"height ="315"allowscriptaccess ="always"allowfullscreen ="true"wmode ="transparent">"

  • Hgroup floating question button

    OK I want is the ToggleSwitch left and a button on the right. When the screen is too small, I want the button to truncate and show a few «...» ». So I used:

    <s:Group width="100%">
       
    <s:layout>
           
    <s:HorizontalLayout verticalAlign="middle"/>
       
    </s:layout>
       
    <s:ToggleSwitch />
       
    <s:Spacer width="100%"/>
       
    <s:Button label="TestTestTestTestTest"/>
    </s:Group>

    It works fine, until the screen is so small that the whole label for the button text does not. Then the two components are floating to the left and right outside of the screen.

    So I tried using a basic layout:

    <s:Group width="100%">
       
    <s:ToggleSwitch left="0" />
       
    <s:Button right="0" label="TestTestTestTestTest"/>
    </s:Group>

    Doesn't ' t work either. When the screen is too small, the button is floating above the toggleswitch.

    So, how can I get this to work?

    Solved. Just set property.clipAndEnableScrolling" of the group to "true"

  • Basic CSS text question

    I take over the maintenance of Web site someone else and I want to add some simple CSS that will create a text that I can apply for areas intended for a lot of text to read.

    1.) add the following to the CSS file would serve my purpose?

    {.readingtext}

    -font size: 1.2em;

    font style: arial

    font color: #000

    }

    2.) how I can add styles to all text blocks in DW to apply this style?

    Thanks in advance.

    These can easily be converted intofor someone like me with no coding experience or is it more than that?

    Easily.

    Just switch to Code view and replaceandTO.

    But I suggest that you show us all the code for the page you are dealing with.

    I suspect that there is another code redundant and/or poorly maintained similar which could be cleaned up and optimized to facilitate greatly your guide formatting.

  • CSS Float Drop in IE8 but not Compatibility Mode

    I'm testing code to my homepage on different browsers and met the common problem of the fall of the IE float.  This does not work in Firefox, Chrome, Opera or IE8 in Compatibility Mode; but does not occur in IE8 standard mode.  This is a little confusing, since I usually encounter this problem in Compatibility Mode.

    I tried using clear: none; as I thought the content was clear the float: left property of a big picture flash on the left side of the window, but it does not solve the problem.  I have 3 Heights image buttons combined equal to that of the flash image (all 622px), and these are all in a div floating to the right column.  They are all RAS margin: 0 and padding: 0, border: No.  The flash image has its own class declaring margin: 0, padding: 0, border: nothing more.  These div tags is fixed pixel widths and heights.  I tried placing them in a larger container div with fixed width and height, which does not solve the problem.  Yet once again, this only happens in IE8 Compatibility Mode.

    This is the code below:

    div id = "container" >
    embed src = "index.swf" allowscriptaccess = "always" allowfullscreen = "true" height = "622" width = "509" align = "left" class = "flashhome" > / embed > "
    div id = "homecontright" >
    a href = "services.html? panel = 5" >
    img src = "button1.gif" align = "top" border = "0" alt = "b1" class = "imageright" / > /a > "
    a href = "smt.html" > "
    img src = "button2.gif" align = "top" border = "0" alt = "b2" class = "imageright" / > /a > "
    a href = "jobs.html" > "
    img src = "button3" align = "top" border = "0" alt = "b3" class = "imageright" / > /a >
    div >
    div class = "floatfix" > div >
    div id = "foot" align = "center" >
    contact info page footer
    div >
    div >

    This is the style of my separate style sheet information

    #homecontright {margin: 0; padding: 0; border: none; width: 493px; height: 622px; overflow: visible; float: right; display: block ;}}

    . ImageRight {margin left: auto; margin-right: 0px; margin-top: 0px; margin-bottom: 0px; display: block; float: right}

    .flashhome {width: 509px; height: 622px; margin: 0; padding: 0; float: left; border: none ;}}

    div #container {margin-left: auto; margin-right: auto; margin-bottom: 0; width: 1002px; background-color: #A8CBE9 ;}}

    div #foot {background-color: #003366;}      border-color: #a8cbe9;      border-width: thin;      border-style: solid;      do-size: 10px;      Width: 996px;      padding: 0.2em;      margin-left: auto;     margin-right: auto;      text-align: center;      do-family: Arial, Helvetica, without serif.      make-weight: bold;      color: #FFFFFF;      height: 10px; }

    .floatfix {clear: both ;}}

    I tried remove all tanks, same, especially those in the class/div elements nested; but this has not done a thing.  This leads me to wonder if it's really a problem of fall of float, or am I missing something?

    EDIT: I can't post code so I removed the front support of all tags.  In addition, added a diagram to show that it is supposed to look like and what is happening in IE 8 compatibility.  Margins do not exist, they are there, so you can see the individual items

    Hello

    Use to incorporate it into your code will put IE8 in quirks mode for the doctype you use, so can you change code, (not as simple to change the name of tag, I'm afraid)?

    Reduce the size of the flash (in the code) apply a left margin to the image container and expand your main container. It's just to check if it works, I know it will probably break your layout for the moment, but if we can make it work, (sort of) in IE8 then we can work backward from there.

    PZ

  • CSS &gt; xml question

    Hi all

    Version 11, I see css.xml file getting updated with the addition of MSAD. It changed

    Purnima

    URL: https://hostname:28443 / getCSSConfigFile/Framework/interop

    Sandeep Reddy, Enti
    HCC
    http://hyperionconsultancy.com/

Maybe you are looking for

  • Are adapters CA / CC for Portege Z930 and Kira-701 compatible?

    Hello friends, My boss has a Toshiba Z-930 ultra-livre and power adapters about 10 - 12 for him around the world in his various homes and offices. He now plans on changing his computer. The same power adapters will work on the laptop Toshiba KIRA-701

  • Missing iTunes library and playlists... Please help

    Hello, this morning to my horror, I started iTunes and all my 20,000 songs and playlists, I spent years developing are absent.  Would it be a problem with my hard drive or a disk that allows iTunes search startup files?  I checked the path to the fil

  • Data acquisition period log rate Counter

    I measure and record the duration of a pulse train of digital entry (entry to the NI9421 card on a DAQ, series "C" chassis and recorded via LabVIEW SignalExpress 2009).  The acquisition stage 'Counter period' is configured to use ' 1 meter"measuring

  • Problem with Windows 2008 Enterprise

    Hello! I have a problem with Windows 2008 Server. I have a server with the operating system and I shared network folders and more restricted to different users. Random users cannot connect to moments share files and then automatically recovers. Remot

  • TypeDef/control of the load of a road fixed

    Hi all I tried to search but could not find this topic. But I doubt if it has not already, examined in the forum of LabVIEW. In my application, I used custom controls. The application has several "pieces" and each of them uses "similar" (but not nece