I have made a table with div.I am trying to drag
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
} );
</script>
<h2>Working with Handlebars</h2>
<p>{{ text }}</p>
<div class="Table" id="container1">
<div class="Heading" id="sortable">
<div class="Cell">
<p>No</p>
</div>
<div class="Cell">
<p>Name</p>
</div>
<div class="Cell">
<p>Email</p>
</div>
</div>
{{#each this.studDetails as |studDetails index|}}
<div class="Row">
<div class="Cell">{{index}} </div>
<div class="Cell">{{ this.name }}</div>
<div class="Cell">{{ this.email }}</div>
</div>
{{/each}}
</div>
columns from div.same time the the remaining items from the columns should moov..How it possible?
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
} );
</script>
<h2>Working with Handlebars</h2>
<div class="Table" id="container1">
<div class="Heading" id="sortable">
<div class="Cell">
<p>No</p>
</div>
<div class="Cell">
<p>Name</p>
</div>
<div class="Cell">
<p>Email</p>
</div>
</div>
<div class="Row">
<div class="Cell">1</div>
<div class="Cell">name1</div>
<div class="Cell">test#test.com</div>
</div>
<div class="Row">
<div class="Cell">2</div>
<div class="Cell">name2</div>
<div class="Cell">test2#test.com</div>
</div>
<div class="Row">
<div class="Cell">3</div>
<div class="Cell">name3</div>
<div class="Cell">test3#test.com</div>
</div>
</div>
Related
There is a task - to randomly find an element with a date-attribute on a site with a large nesting. This task I should do only with CSS, without JS (maybe some compile from SASS or LESS). Someone has an idea how to find any block with [data-some="true"]? Can you help me? please?
<div id="parent">
<div class="row-1">
<div class="child-first></div>
<div class="child-second>
<div data-some="true"></div>
<div data-some="true"></div>
<div data-some="true"></div>
</div>
<div>
<div class="row-2">
<div class="child-first></div>
<div class="child-second>
<div data-some="true"></div>
<div data-some="true"></div>
<div data-some="true"></div>
</div>
<div>
...
<div class="row-n">
<div class="child-first></div>
<div class="child-second>
<div data-some="true"></div>
<div data-some="true"></div>
<div data-some="true"></div>
</div>
<div>
</div>
You was very close and can use [data-some="true"] directly as CSS selector:
[data-some="true"] {
color: red;
}
<div id="parent">
<div class="not_nested">
<div data-some="false">test</div>
<div data-some="true">test</div>
<div data-some="true">test</div>
</div>
<div>
<div class="row-2">
<div class="nested">
<div data-some="true">test</div>
<div data-some="false">test</div>
<div data-some="true">test</div>
</div>
</div>
<div class="row-n">
<div class="child-first"></div>
<div class="child-second">
<div class="deeper_nested">
<div data-some="true">test</div>
<div data-some="true">test</div>
<div data-some="false">test</div>
</div>
</div>
</div>
</div>
</div>
Good evening, i have one question, how can i hide this logo enter image description here
in my website with a custom css?
this is my code, i think the class of my logo is sticky-logo, itried so much but i can't hide it. please help me.
<body class="page-template page-template-page-templates page-template-landing-page page-template-page-templateslanding-page-php page page-id-10270 logged-in siteorigin-panels" id="thim-body">
<div id="wrapper-container" class="wrapper-container">
<div class="content-pusher " style="padding-top: 149px;">
<header id="masthead" class="site-header affix-top sticky-header header_default header_v1">
<div id="toolbar" class="toolbar">
<div class="container">
<div class="row">
<div class="col-sm-12">
<aside id="text-2" class="widget widget_text">
<div class="textwidget">
<div class="thim-have-any-question"> Hai delle domande?
<div class="mobile"><i class="fa fa-phone"></i><span class="value">045 581062</span></div>
<div class="email"><i class="fa fa-envelope"></i>segreteria#corsiverona.it</div>
</div>
</div>
</aside>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="navigation col-sm-12">
<div class="tm-table">
<div class="width-logo table-cell sm-logo">
<img src="https://www.corsiverona.it/wp-content/uploads/2016/05/Corsi-verona_logoArancio-Nero2.jpg" alt="CorsiVerona" width="300" height="59">
<a href="https://www.corsiverona.it/" title="CorsiVerona - Un nuovo sito professionale marcato Corsi Verona"
rel="home" class="sticky-logo"> <img src="https://www.corsiverona.it/wp-content/uploads/2016/05/Corsi-verona_logoArancio-Nero2.jpg" alt="CorsiVerona" width="300" height="59">
It looks like you can hide your logo like this:
.sm-logo {
display: none;
}
Try the snippet below:
.sm-logo {
display: none;
}
<body class="page-template page-template-page-templates page-template-landing-page page-template-page-templateslanding-page-php page page-id-10270 logged-in siteorigin-panels" id="thim-body">
<div id="wrapper-container" class="wrapper-container">
<div class="content-pusher " style="padding-top: 149px;">
<header id="masthead" class="site-header affix-top sticky-header header_default header_v1">
<div id="toolbar" class="toolbar">
<div class="container">
<div class="row">
<div class="col-sm-12">
<aside id="text-2" class="widget widget_text">
<div class="textwidget">
<div class="thim-have-any-question"> Hai delle domande?
<div class="mobile"><i class="fa fa-phone"></i><span class="value">045 581062</span></div>
<div class="email"><i class="fa fa-envelope"></i>segreteria#corsiverona.it</div>
</div>
</div>
</aside>
</div>
</div>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="navigation col-sm-12">
<div class="tm-table">
<div class="width-logo table-cell sm-logo">
<img src="https://www.corsiverona.it/wp-content/uploads/2016/05/Corsi-verona_logoArancio-Nero2.jpg" alt="CorsiVerona" width="300" height="59">
<img src="https://www.corsiverona.it/wp-content/uploads/2016/05/Corsi-verona_logoArancio-Nero2.jpg" alt="CorsiVerona" width="300" height="59">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
I've created a site with master page. But whenever user clicked on the Content, there will be a annoying selecting blue line wrapping the whole content pages. Any idea what is it and how should I solved it? Thanks.
Master Page :-
<body>
<div id="mainPage" data-role="page">
<header>
<section>
<h1 runat="server" id="nandosHeader">PERi-Vilege</h1>
<div class="wrapperTopNavi">
<div class="topNavi">
<div class="btnBack left"><a data-rel="back" href="javascript:void(0);"><span></span></a></div>
<div class="btnRefresh right"></div>
</div>
</div>
</section>
</header>
<div class="BigWrapper">
<form id="form1" runat="server">
<input id="hiddenAppSettings" type="hidden" value="<% =AppSettings %>" />
<asp:ContentPlaceHolder ID="MainContent" runat="server"></asp:ContentPlaceHolder>
</form>
<div class="footer"></div>
</div>
<script type="text/javascript">
$.mobile.document.bind("pageinit", function (event, ui) {
$('.ui-loader').hide();
});
</script>
<asp:ContentPlaceHolder ID="PageScriptContent" runat="server">
</asp:ContentPlaceHolder>
</div>
</body>
Screenshot with the annoying selecting blue lines
Content Page :-
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="BigWrapper">
<div class="ContentWrapper">
<h1>Settings</h1>
</div>
<div class="btnDivider"></div>
<div class="ClickDiv" style="cursor:pointer;cursor:hand;">
<div class="setting">
<a href="<%=ResolveUrl("~/Member/Edit.aspx")%>" data-ajax="false">
<p>Edit Profile</p>
</a>
</div>
<div class="arrowright"></div>
</div>
<div class="clear"></div>
<div class="btnDivider"></div>
<div class="ClickDiv" style="cursor:pointer;cursor:hand;">
<div class="setting">
<a href="<%=ResolveUrl("~/HowItWorks.aspx") %>" data-ajax="false">
<p>How it Works</p>
</a>
</div>
<div class="arrowright"></div>
</div>
<div class="clear"></div>
<div class="btnDivider"></div>
<div class="ClickDiv" style="cursor:pointer;cursor:hand;">
<div class="setting">
<a href="<%=ResolveUrl("~/Terms"+ConfigurationManager.AppSettings["loyalty_country"].ToString()+".aspx")%>" data-ajax="false">
<p>Terms and Conditions</p>
</a>
</div>
<div class="arrowright"></div>
</div>
<div class="clear"></div>
<div class="btnDivider"></div>
<div class="ClickDiv" style="cursor:pointer;cursor:hand;">
<div class="setting">
<a href="<%=ResolveUrl("~/Privacy"+ConfigurationManager.AppSettings["loyalty_country"].ToString()+".aspx")%>" data-ajax="false">
<p>Personal Data Protection Policy</p>
</a>
</div>
<div class="arrowright"></div>
</div>
<div class="clear"></div>
<div class="btnDivider"></div>
<div class="setting1" style="cursor:pointer;cursor:hand;">
<a href="javascript:void(0);" id="btn_logout">
<p>Log Out</p>
</a>
</div>
</div>
</asp:Content>
<div class="row">
<div class="col-md-12">
<div class="well" style="overflow: scroll">
<div class="col-md-1"> Date </div>
<div class="col-md-1"> Revenue </div>
<div class="col-md-1"> Discounts </div>
<div class="col-md-1"> Items </div>
<div class="col-md-1"> Purchased </div>
<div class="col-md-1"> OV </div>
<div class="col-md-1"> AOV </div>
<div class="col-md-1"> AIO </div>
<div class="col-md-1"> TV </div>
<div class="col-md-1"> UV </div>
<div class="col-md-1"> RPV </div>
<div class="col-md-1"> VCR </div>
<div class="col-md-1"> UCR </div>
<div class="col-md-1"> ATC </div>
<div class="col-md-1"> CCR </div>
</div>
</div>
</div>
Bootstrap not scrolling on overflow. instead it is breaking into new line. How do I make it scroll. I want it to scroll in x-axis
Fixed Your Issue
div.well {
overflow-x: auto;
white-space: nowrap;
}
div.well [class*="col"]{
display: inline-block;
float: none;
}
Demo : https://jsfiddle.net/hellosrini/63gnLaq9/
You can do it like this.
.col{
display: inline-block;
margin-right: 4px;
}
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="row">
<div class="col-md-12">
<div class="well" style="overflow-x: scroll; ">
<div class="col" style="display: inline-block"> Date </div>
<div class="col"> Revenue </div>
<div class="col"> Discounts </div>
<div class="col"> Items </div>
<div class="col"> Purchased </div>
<div class="col"> OV </div>
<div class="col"> AOV </div>
<div class="col"> AIO </div>
<div class="col"> TV </div>
<div class="col"> UV </div>
<div class="col"> RPV </div>
<div class="col"> VCR </div>
<div class="col"> UCR </div>
<div class="col"> ATC </div>
<div class="col"> CCR </div>
</div>
</div>
</div>
</body>
</html>
You can have grid of maximum 12 columns. So you cannot use col-md-1. You can set its width to fit you available area.
I have this free Philippines texting site and as you can see I can't align the captcha image with the textbox. It is below the captcha image. How can I align the textbox? Here is my code. I am using foundation css framework.
<body>
<div class="row">
<div class="large-12 columns">
<div class="nav-bar right">
<ul class="button-group">
<li>Free SMS</li>
<li>Contact Me</li>
</ul>
</div>
<img src="img/smsbanner.png">
<hr/>
</div>
</div>
<div class="row">
<div class="large-4 large-centered columns">
<div class="large-12 columns">
<form action="sendsms.php" method="POST" name="txtform" data-abide>
<div class="row">
<div class="large-12 columns">
<div class="row">
<div class="small-3 columns">
<label for="right-label" class="right">+63</label>
</div>
<div class="small-9 columns">
<input type="text" name="txt_number" placeholder="10 digit number" required pattern="number" maxlength="10"/>
<small class="error">Phone number is required.</small>
</div>
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<textarea rows="10" cols="50" placeholder="Message" required maxlength="200" name="txt_body" style="resize:none;"
onKeyDown="limitText(this.form.txt_body,this.form.countdown,200);"
onKeyUp="limitText(this.form.txt_body,this.form.countdown,200);"></textarea>
<small class="error">Your message is required.</small>
<div class="row">
<div class="small-5 columns">
<img id="captcha" src="securimage/securimage_show.php" alt="CAPTCHA Image" />
</div>
<div class="small=7 columns">
<input type="text" name="captcha_code" size="10" maxlength="6" style="width:100px;"/>
[ Different Image ]
</div>
</div>
<div class="row">
<div class="small-4 columns">
<input readonly type="text" name="countdown" size="3" value="200">
</div>
<div class="small-8 columns">
characters left.
</div>
</div>
</div>
</div>
<div class="row">
<div class="large-12 large-centered columns">
<input type="submit" class="button expand" value="Send" name="send_btn"/>
</div>
</div>
</form>
</div>
</div>
</div>
<footer class="row">
<?php include 'footer.php'; ?>
</footer>
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script>
$(document).foundation();
</script>
</body>
Looks like a pretty minor problem.
<div class="small=7 columns">
should be
<div class="small-7 columns">