Having an issue with the bootstrap grid columns not lining up when using radio buttons in the grid. essentially all the columns should line up exactly but they are not. The example has virtually no styling but as you can see the columns are not lining up as you would expect. Goal is to make the column and rows dynamic so user can add and edit new column and rows.
You need to expand the snippet to see the issue.
<!DOCTYPE html>
<html>
<head>
<title>Radio Bootstrap Example</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style>
.row {
outline: 1px dotted rgba(0, 0, 0, 0.25);
}
[class*="col-md"] {
outline: 1px dotted rgba(0, 0, 0, 0.5);
}
.textAlignCenter {
text-align: center;
}
label {
padding: 4px;
}
</style>
</head>
<body>
<form novalidate="novalidate">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Same/Different Example</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-2 col-md-offset-4 textAlignCenter">
<div class="form-group">
<label class="">Very <br>Disinterested </label>
</div>
</div>
<div class="col-md-2 textAlignCenter">
<div class="form-group">
<label class="">Somewhat <br>Disinterested </label>
</div>
</div>
<div class="col-md-2 textAlignCenter">
<div class="form-group">
<label class="">Somewhat <br>Interested </label>
</div>
</div>
<div class="col-md-2 textAlignCenter">
<div class="form-group">
<label class="">Very <br>Interested </label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group ">
<label class="col-md-4">Travel</label>
<div>
<div class="form-check col-md-2 textAlignCenter">
<input type="radio" value="Very Disinterested">
</div>
<div class="form-check col-md-2 textAlignCenter">
<input type="radio" value="Somewhat Disinterested">
</div>
<div class="form-check col-md-2 textAlignCenter">
<input type="radio" value="Somewhat Interested">
</div>
<div class="form-check col-md-2 textAlignCenter">
<input type="radio" value="Very Interested">
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group ">
<label class=" col-md-4">Fashion</label>
<div class="cbl -radio">
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Very Disinterested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Somewhat Disinterested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Somewhat Interested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Very Interested">
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group ">
<label class=" col-md-4">Health & Fitness</label>
<div class="cbl -radio">
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Very Disinterested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Somewhat Disinterested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Somewhat Interested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Very Interested">
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
Use Bootstrap table to fix align.
Or replace the code using this code.
<!DOCTYPE html>
<html>
<head>
<title>Radio Boostrap Example</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>
<style>
table,th,tr,td,thead,tbody {
border: 1px dotted #ccc;
}
</style>
<body>
<div class="container py-5">
<form novalidate="novalidate">
<h4 class="">Same/Different Example</h4>
<table class="table">
<thead>
<tr>
<th scope="col"></th>
<th scope="col" class="text-center">Very <br>Disinterested</th>
<th scope="col" class="text-center">Somewhat <br>Disinterested</th>
<th scope="col" class="text-center">Somewhat <br>Interested</th>
<th scope="col" class="text-center">Very <br>Interested</th>
</tr>
</thead>
<tbody class="text-center">
<tr>
<td>Travel</td>
<td><input type="radio" name="travel" value="Very Disinterested"></td>
<td><input type="radio" name="travel" value="Somewhat Disinterested"></td>
<td><input type="radio" name="travel" value="Somewhat Interested"></td>
<td><input type="radio" name="travel" value="Very Interested"></td>
</tr>
<tr>
<td>Fashion</td>
<td><input type="radio" name="fashion" value="Very Disinterested"></td>
<td><input type="radio" name="fashion" value="Somewhat Disinterested"></td>
<td><input type="radio" name="fashion" value="Somewhat Interested"></td>
<td><input type="radio" name="fashion" value="Very Interested"></td>
</tr>
<tr>
<td>Health & Fitness</td>
<td><input type="radio" name="health" value="Very Disinterested"></td>
<td><input type="radio" name="health" value="Somewhat Disinterested"></td>
<td><input type="radio" name="health" value="Somewhat Interested"></td>
<td><input type="radio" name="health" value="Very Interested"></td>
</tr>
</tbody>
</table>
</form>
</div>
</body>
</html>
Think I found a suitable solution for radio and check input specific row/columns. For those specific rows I eliminated the gutters on the cols using the following CSS:
.no-gutters > [class*="col-"] {
padding-right: 0;
padding-left: 0;
}
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Radio Boostrap Example</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style>
.row {
outline: 1px dotted rgba(0, 0, 0, 0.25);
}
[class*="col-md"] {
outline: 1px dotted rgba(0, 0, 0, 0.5);
}
.textAlignCenter {
text-align: center;
}
.no-gutters > [class*="col-"] {
padding-right: 0;
padding-left: 0;
}
label {
padding: 4px;
}
</style>
</head>
<body>
<form class="container-fluid" novalidate="novalidate">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Same/Different Example</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4 textAlignCenter">
<div class="form-group">
<label class=""></label>
</div>
</div>
<div class="col-md-2 textAlignCenter">
<div class="form-group">
<label class="">Very <br>Disinterested </label>
</div>
</div>
<div class="col-md-2 textAlignCenter">
<div class="form-group">
<label class="">Somewhat <br>Disinterested </label>
</div>
</div>
<div class="col-md-2 textAlignCenter">
<div class="form-group">
<label class="">Somewhat <br>Interested </label>
</div>
</div>
<div class="col-md-2 textAlignCenter">
<div class="form-group">
<label class="">Very <br>Interested </label>
</div>
</div>
</div>
<div class="row no-gutters">
<div class="col-md-12">
<div class="form-group ">
<label class="col-md-4">Travel</label>
<div>
<div class="form-check col-md-2 textAlignCenter">
<input type="radio" value="Very Disinterested" onclick="socratesProcess.ToggleRadioSelection(event,'Dataset.Scratch.Text6')">
</div>
<div class="form-check col-md-2 textAlignCenter">
<input type="radio" value="Somewhat Disinterested" onclick="socratesProcess.ToggleRadioSelection(event,'Dataset.Scratch.Text6')">
</div>
<div class="form-check col-md-2 textAlignCenter">
<input type="radio" value="Somewhat Interested" onclick="socratesProcess.ToggleRadioSelection(event,'Dataset.Scratch.Text6')">
</div>
<div class="form-check col-md-2 textAlignCenter">
<input type="radio" value="Very Interested" onclick="socratesProcess.ToggleRadioSelection(event,'Dataset.Scratch.Text6')">
</div>
</div>
</div>
</div>
</div>
<div class="row no-gutters">
<div class="col-md-12">
<div class="form-group ">
<label class=" col-md-4">Fashion</label>
<div class="cbl -radio">
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Very Disinterested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Somewhat Disinterested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Somewhat Interested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Very Interested">
</div>
</div>
</div>
</div>
</div>
<div class="row no-gutters">
<div class="col-md-12">
<div class="form-group ">
<label class=" col-md-4">Health & Fitness</label>
<div class="cbl -radio">
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Very Disinterested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Somewhat Disinterested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Somewhat Interested">
</div>
<div class=" form-check textAlignCenter col-md-2">
<input type="radio" value="Very Interested">
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
I tried customizing the angular material forms field using ::ng-deep in my angular project the problem I am facing is css applied gets applied only I refresh the page or when I click on it.
I tried using ::ng-deep and tried to set the Encapsulation.None on my ts files.
<div class="input-row">
<div class="call-out-grt">
<div class="box">
<mat-label class="arrival">GRT-NRT-DWT</mat-label>
<div class="box-1">
<mat-form-field class="cranes" appearance="outline">
<input matInput type="text">
</mat-form-field>
</div>
<div class="box-1">
<mat-form-field class="cranes" appearance="outline">
<input matInput type="text">
</mat-form-field>
</div>
<div class="box-1">
<mat-form-field class="cranes" appearance="outline">
<input matInput type="text">
</mat-form-field>
</div>
</div>
</div>
<div class="call-out">
<mat-form-field class="flag-field">
<input matInput type="text" placeholder="Flag">
</mat-form-field>
</div>
<div class="call-out-date">
<mat-form-field class="flag-field">
<input matInput type="text" placeholder="Built Date">
</mat-form-field>
</div>
</div>
::ng-deep .cranes .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-outline {
width: 55px ;
height: 50px;
margin-left: 2px;
}
The form css should get applied without refreshing it
Hi I am new to selenium via VBA, so I am trying to automate a process by loging into a webpage navigate and get data extracted into the excel file. the problem is after login i am unable to input values in a search box.
Here are the codes i have tried
bot.FindElementById("placeholder-3vgh2").SendKeys "AAA"
bot.FindElementByClass(".public-DraftStyleDefault-block.public-DraftStyleDefault-ltr").SendKeys "AAA"
bot.FindElementByClass("public-DraftStyleDefault-block public-DraftStyleDefault-ltr").SendKeys "AAA"
bot.FindElementByXPath("//*[#data-contents='true']").SendKeys "AAA"
bot.FindElementByXPath("//*[#class='public-DraftStyleDefault-block public-DraftStyleDefault-ltr']").SendKeys "AAA"
bot.FindElementByXPath("//*[#data-offset-key='dtaef-0-0'][2]").SendKeys "AAA"
Here is HTML Code
<div class="db-World-topContent Box-root Box-background--surface Padding-vertical--20">
<div class="Box-root Flex-flex Flex-alignItems--center Flex-justifyContent--spaceBetween">
<div class="db-SearchField db-SearchField--tokenizable">
<div class="db-SearchField-input db-SearchField-input--highlighted">
<div class="DraftEditor-root">
<div class="DraftEditor-editorContainer">
<div aria-describedby="placeholder-3vgh2" class="notranslate public-DraftEditor-content" contenteditable="true" role="textbox" spellcheck="false" style="outline: none; user-select: text; white-space: pre-wrap; word-wrap: break-word;">
<div data-contents="true">
<div class="" data-block="true" data-editor="3vgh2" data-offset-key="dtaef-0-0">
<div data-offset-key="dtaef-0-0" class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"><span class="db-SearchField-token" data-offset-key="dtaef-0-0"><span data-offset-key="dtaef-0-0"><span data-text="true">is:</span></span>
</span>
</div>
</div>
</div>
</div>
</div>
</div><span></span><span></span></div><span></span></div>
<div class="Box-root">
<div class="Box-root Flex-flex Flex-alignItems--center Flex-direction--row Flex-justifyContent--flexStart" style="margin-left: -12px;">
<div class="Box-root Box-hideIfEmpty Margin-left--12"></div>
<div class="Box-root Box-hideIfEmpty Margin-left--12">
<div class="Box-root Padding-right--8">
<div class="db-FeedbackInput-container Card-root Card-shadow--small">
<div class="db-FeedbackInput-box Box-root Box-background--offset Padding-horizontal--8 Padding-vertical--4 Flex-flex Flex-alignItems--center">
<div class="Box-root Margin-right--8 Flex-flex"><span class="db-FeedbackInput-defaultIcon"></span></div>
<div class="TruncatedText" style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><span class="Text-color--gray400 Text-fontSize--14 Text-fontWeight--regular Text-lineHeight--20 Text-typeface--base Text-wrap--wrap Text-display--inline"><span>Feedback about this page?</span></span>
</div>
</div>
</div>
</div>
</div>
<div class="Box-root Box-hideIfEmpty Margin-left--12">
<div>
<div class="Box-root Flex-flex">
<div class="Box-root Flex-flex"><button aria-label="Documentation" class="db-DocumentationMenu-root" tabindex="-1"></button></div>
</div>
</div>
</div>
<div class="Box-root Box-hideIfEmpty Margin-left--12">
<div>
<div class="Box-root Flex-flex">
<div class="Box-root Flex-flex">
<div tabindex="-1" style="outline: none;"><button aria-label="Notifications" class="db-Notifications-button"><span class="db-Notifications-icon db-Notifications-icon--empty"></span></button></div>
</div>
</div>
</div>
</div>
<div class="Box-root Box-hideIfEmpty Margin-left--12">
<div>
<div class="Box-root Flex-flex">
<div class="Box-root Flex-flex"><button class="bs-Button bs-DeprecatedButton db-UserMenu" aria-label="User menu" type="button" tabindex="-1"><div class="db-GravatarImage db-UserMenu-image db-GravatarImage--none"></div></button></div>
</div>
</div>
</div>
</div>
</div>
</div><span class="db-World-topContent--left"></span><span class="db-World-topContent--right"></span></div>
Here is the outerHTML of iframe:
<iframe src="https://js.stripe.com/v2/m/outer.html#ping=false" style="width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"></iframe>
Try, following our debug session:
bot.FindElementByCss(".notranslate.public-DraftEditor-content").SendKeys "AAA"
I am using Firefox Quantum.
It's something different than Mozzila firefox. I can't use firebug now as it is not supporting.How can i verify that the i am on a different frame.
As currently i can't write on the popup message. Maybe it is on different frame.
Can anyone explain me with proper example.
The HTMLM of the code is:-
<div class="store_form">
<div class="row">
<div class="col s12 m12 marg-top">
<div class="row">
<div class="col s12 m6 store_band_contact">
</div>
<div class="col s12 m6 store_add_left">
</div>
</div>
</div>
<form id="form_contact" class="col s12 m12" novalidate="novalidate">
<div id="errorMsg"></div>
<!-- <div class="row">
<p class="col s12" style="font-size: 15px;" >
<strong id="buyer_company"></strong>
</p>
</div> -->
<!-- <div class="row">
<p class="col s12" id="">Subject: Request to remove my bid
</p>
</div> -->
<div class="row">
<div class="input-field col s12">
<span class="editFiledHeading">Request to remove my bid</span>
<!-- Contact Seller -->
<textarea name="comment" maxlength="20000" id="comment" class="ckeditor" placeholder="" style="visibility: hidden; display: none;"></textarea><div id="cke_comment" class="cke_1 cke cke_reset cke_chrome cke_editor_comment cke_ltr cke_browser_webkit" dir="ltr" lang="en" role="application" aria-labelledby="cke_comment_arialbl" style="width: 99.8%;"><span id="cke_comment_arialbl" class="cke_voice_label">Rich Text Editor, comment</span><div class="cke_inner cke_reset" role="presentation"><span id="cke_1_top" class="cke_top cke_reset_all" role="presentation" style="height: auto; user-select: none;"><span id="cke_12" class="cke_voice_label">Editor toolbars</span><span id="cke_1_toolbox" class="cke_toolbox" role="group" aria-labelledby="cke_12" onmousedown="return false;"></span></span><div id="cke_1_contents" class="cke_contents cke_reset" role="presentation" style="height: 200px;"><span id="cke_16" class="cke_voice_label">Press ALT 0 for help</span><iframe src="" frameborder="0" class="cke_wysiwyg_frame cke_reset" title="Rich Text Editor, comment" aria-describedby="cke_16" tabindex="0" allowtransparency="true" style="width: 439px; height: 100%;"></iframe></div></div></div>
<input type="hidden" name="bid" id="bid_id" value="1035">
</div>
</div>
<div class="row" style="margin-top: 10px;">
<div class="col s6">
<p style="margin: 5px 0 0;">
<input type="checkbox" name="is_copy" id="is_copy" value="1">
<label for="is_copy">Send me a copy</label>
</p>
</div>
<div class="col s6">
<span class="right remainingLimit" id="comment_label" data-length="2500">Remaining: 2500</span>
</div>
</div>
<div class="row">
<div class="col s12">
<p class="defaultP">
If you like to remove a bid you can do that by
sending the request to the seller. Please make
sure that you state the reason for doing this.
Obvious accidents by using the wrong value are
easy to justify.
Please note that it is up to the seller to accept
or decline your request!
</p>
</div>
</div>
<div class="row">
<div class="col s12 center" style="margin: 20px 0 15px;">
<button class="transParentBtnSmall">Submit</button>
</div>
</div>
</form>
</div>
</div>
<div class="container vertical-center" style="background: url('background.png')";>
<div class="row">
<div class="panel panel-primary">
<div class="panel-heading">LOGIN</div>
<div class="panel-body">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">
<span class="glyphicon glyphicon-user"></span>
</span>
<input type="text" class="form-control" placeholder="Username" />
</div>
<br />
<div class="input-group">
<span class="input-group-addon" id="basic-addon2">
<span class="glyphicon glyphicon-lock"></span>
</span>
<input type="text" class="form-control" placeholder="Password" />
</div>
</div>
<div class="text-center">
<button type="button" class="btn btn-primary btn-sm" style="align-content: center">Submit</button>
</div>
<br />
<div class="panel-footer">Trademark</div>
</div>
</div>
</div>
this is my code i have written the entire code i dont know why stack
overflow is displaying like this....
please help me regarding this
IMAGE IS HERE
SKYRIM BACKGROUND
You can try change your first line to
<div class="container vertical-center" style="background: url('background.png'); background-repeat: repeat;">
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
this is the code that works properly.
makes background image responsive as well.
found answer on stackoverflow only