I have code that uses the <ul> and the anchor tags, I have put: <br> <br />
<center> (without some spaces.....) above it, and this: '''' below it. But I still get 3 rows I have in total 5 buttons, 4 that change when you hover over them and one dropdown menu in the middle. But I need them to be all on one level. Can anyone help me with this?
<div style="text-align:center;">
<button>Button-1</button><button>Button-2</button>
<select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<button>Button-3</button><button>Button-4</button>
</div>
Related
So i was making a project tribute page and as i started to write the css i was first checking it with firefox device toolbar, but when i opened the same code on chrome the image that i had given a img-fluid class was taking up its original full width (1065px)
The div #content is inside a div with .container-fluid
this is how it looks on chrome
this is how it looks on firefox
<div id="content" class="container">
<div id="Home" class="container mx-auto">
<div id="title">
<p>a tribute to</p>
<h1>Joan Didion</h1>
<p id="date">1934 - 2021</p>
</div>
<div id="head-img">
<figure>
<img src="images/didion-edit.webp" alt="image of joan didion" class="img-fluid">
<figcaption>Joan Didion by Mary Lloyd Estrin.</figcaption>
</figure>
</div>
<div id="description">
<figure>
<blockquote><p>I write entirely to find out what I’m thinking, what I’m looking at, what I see and what it means. What I want and what I fear.</p></blockquote>
<figcaption>Why I Write</figcaption>
</figure>
</div>
</div>
edit: okay so i started to add elements to a new file to see when the error would start to occur and it happened when I pasted the section that follows #Home which is #Bio.
I will edit the code so you can see the following section because i still dont know why it's causing the issue
/*I'll take away the css because none of it proved to be an issue*/
<div class="container-fluid">
<!-- there's a nav div here but it doesnt cause issues-->
<div class="container-fluid" id="content">
<div id="Home" class="container mx-auto">
<div id="title">
<p>a tribute to</p>
<h1>Joan Didion</h1>
<p id="date">1934 - 2021</p>
</div>
<div id="head-img">
<figure>
<img src="images/didion-edit.png" alt="image of joan didion" class="img-fluid">
<figcaption>Joan Didion by Mary Lloyd Estrin.</figcaption>
</figure>
</div>
<div id="description">
<figure>
<blockquote><p>I write entirely to find out what I’m thinking, what I’m looking at, what I see and what it means. What I want and what I fear.</p></blockquote>
<figcaption>Why I Write</figcaption>
</figure>
</div>
</div>
<!--the #Bio has three .achivement elements but even if its just one and the figure element the issue occurs-->
<div id="Bio" class="container">
<div id="summary">
<h1>Her life</h1>
<div class="achivement">
<ul>
<li>The iconic writer got her start when she won Vogue's "Prix de Paris" contest and got a job opportunity in the magazine's
New York office as price for one month. Once there, she got a permanent position after writing a seminal article on self-respect on the fly after the reporter that was supposed to make the assignment failed to deliver a complete article. She worked at the famed magazine for years after that.</li>
</ul>
<blockquote cite="https://www.nytimes.com/1976/12/05/archives/why-i-write-why-i-write.html">
<p>
" Had I been blessed with even limited access to my own mind there would have been no reason to write. I write entirely to find out what I'm thinking, what I'm looking at, whot I see and what it means."
</p><cite>-- Joan Didion on her "Why I Write" article for the New York Times</cite>
</blockquote>
</div>
<figure>
<img src="images/tradlands-flickr.jpg" alt="joan didion in later years">
<figcaption>Didion by Irving Penn.</figcaption>
</figure>
</div>
</div>
</div>
</div>
Try adding the rule in your css file:
<style>
figure .img-fluid {
width: 100%;
}
</style>
I'm pretty sure it will work for you.
So after taking off and adding elements one-by-one I realized that an image on the section that followed the #Home div didn't have .img-fluid
I don't know why that wasn't an issue on firefox but I've tested the code on both browsers and it's working properly.
bootstrap selectpicker generates some elements so that protractor has to click a button to show the list of options (that are in the hidden select) and then click the item in the list. I'm having trouble figuring out, by text which list item needs to click.
Sample HTML looks like this:
<div>
<button type="button">
<div class="ripple-container"></div>
</button>
<div class="dropdown-menu open" role="combobox">
<ul class="dropdown-menu inner" role="listbox">
<li data-original-index="1"><a>Male</a></li>
<li data-original-index="2"><a>Female</a></li>
</ul>
</div>
<select>
<option> </option>
<option value="MALE">Male</option>
<option value="FEMALE">Female</option>
</select>
</div>
I want to be able to tell protractor to click the li that corresponds to the option with the value FEMALE - because of localization, I don't want to hardcode strings, but rather find out the position of the option with the value FEMALE and use that to select the <li data-original-index="2">
Is this even possible? Is there another, better way to do it?
I am using Protractor, and trying to find the content of tooltips on the page. These tooltips are generated by Angular-UI, and fading in with moveMouse over them like below. Those tooltips are similar with ng-bind, but I cannot use binding to find them. Also, I tried to getAttribute of this tooltip, but it also didn't work for me, maybe cause protractor cannot detect this element name. Do you have any idea of how to read the content of those tooltips? Many thanks.
<div class="col-md-2">
<div class="form-group">
<label class="control-label" id="label_Merchant_Number" translate>merchant_NUM</label>
<input ng-model='searchCriteria.MERCHANT_NUMBER' tooltip="{{'merNumber_tooltip'|translate}}" class='form-control input-sm' type='text' id='MERCHANT_NUMBER' name='MERCHANT_NUMBER' maxlength='16' erng-validations>
</div>
</div>
we are using getAttribute('tooltip'), works how it should be ...
element(by.model('searchCriteria.MERCHANT_NUMBER')).getAttribute('tooltip');
I am trying to achieve the following with Twitter Bootstrap:
I would like to have a simple <input> field and a simple <button> on one single line or row in Twitter Bootstrap. They should cover the entire width of the column/parent container (ie be of the same width as span12). I do not want to give the button a fixed with - I want the button to be fluid width (width determined by the button text). The input field should use the remaining space left of the button.
Here is a fiddle: http://jsfiddle.net/MgcDU/3202/
The fiddle shows the button aligned to the right.
Now: how do I get the input field to extend to the very left edge of the parent container?
I would like to retain the responsiveness, of course.
Any ideas? I do prefer a non Javascript based solution!
Done
http://jsfiddle.net/MgcDU/3251/
Using approach from here:
http://boulderinformationservices.wordpress.com/2011/02/02/input-field-and-submit-button-on-the-same-line-full-width/
<div class="container">
<div class="row">
<div style="width:100%;background-color:#d0d0d0;text-align:center;">Example of a Full row</div>
</div>
<div class="row">
<div class="span12">
<div class="pull-right">
<form class="form-inline">
<button type="submit" class="btn" style="float:right;">Button</button>
<div style="overflow: hidden; padding-right: .3em;">
<input style="height:1.6em;width:100%" type="text" placeholder="full width minus button width" />
</div>
</form>
</div>
</div>
</div>
</div>
You could get the width of the button with jQuery, and get the width of the parent span12 then set the input width to be the difference of the two.
I don't think there is any other way if the button width has to be dynamic.
I have encountered a strange behaviour using dijit.form.select inside a tooltip-dialog. Here's a shortened part of my code:
<div id="toolbar" dojoType="dijit.Toolbar">
<div dojoType="dijit.form.DropDownButton">
<div dojoType="dijit.TooltipDialog" id="tooltip">
<input dojoType=dijit.form.TextBox type="text" id="textbox">
<select id="select" dojoType="dijit.form.Select">
<option value="1">1</option>
<option value="2">2</option>
</select>
<button dojoType="dijit.form.Button" type="submit" id="button">click</button>
</div>
</div>
</div>
Whenever I open the toolbar and the form displays, the tooltip dialog will close, as soon as I choose an option from the select in IE only! FF is ok ...
My workaround for now is to use a normal select (I just omit 'dojoType="dijit.form.Select"'), but for layout-reasons I'd like to have a dijit.form.select.
Any hint is appreciated.
Greetings, Select0r
Using a normal "select" is not an option as I need to change the options dynamically which really is a pain with a normal select. I'd also like all selects on the page to look the same.
dijit.FilteringSelect will not show the same error but requires a different handling of changing the options dynamically. I also don't like the dropdown being an input field.
So I've come up with the following workaround, which still is not an acceptable solution but at least something I can live with for now:
<div dojoType="dijit.form.DropDownButton" id="DropDownButton">
<div dojoType="dijit.TooltipDialog" id="tooltip">
<input dojoType=dijit.form.TextBox type="text" id="textbox">
<select id="select" dojoType="dijit.form.Select" onChange="dijit.byId("DropDownButton").openDropDown();">
<option value="1">1</option>
<option value="2">2</option>
</select>
<button dojoType="dijit.form.Button" type="submit" id="button">click</button>
</div>
</div>
dijit.Toolbar was removed, as it was of no use.
the Select will now call the DropDownButton's method "openDropDown" onChange, showing the TooltipDialog again.
Now I'm able to use the TooltipDialog in IE - but still one issue remains: the TooltipDialog remains hidden in IE until I move the mouse a pixel. But at least I don't have to click on the button again to open the dialog.