Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
JSFIDDLE: http://jsfiddle.net/t9h6W/
<body style="margin:0 0 0 0;background-color: #f4f4f4;">
<div>
The JSFiddle has all the code.
</div>
</body
Everything seems to be fine, I don't understand why the Facebook Social Plugin isn't working? More-so, how would i reposition the social plug in inside the login form that I have present on the page? No Idea why it isn't working :/
It says,
Invalid App Id: Must be a number or numeric string representing the application id.
Open your browser console and you will see Javascript error.
To reposition the FB login button, you can place the code inside a div and control the div to position the box.
ie., put the fb embed code inside a div like this,
<div class="fb-login">
<fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>
</div>
Now you can apply style to 'fb-login' class to position the fb button.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed last month.
Improve this question
Can I place the table using <div> tags?
Separate the register textboxes and the table in two different div tags and add style as style="float:left;" on register textboxes div and style="float:right;" on table div. The code should look something like this,
<div style="float:left;">
<!-- code for register text boxes -->
</div>
<div style="float:right;">
<!-- code for already registered students table -->
</div>
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am designing my own profile page on forums, but the creator of the website has disabled custom JavaScript support due to abuse, so I am wondering if it is possible to move one div inside another div?
Here's a HTML code example:
<div class="topLeft">
<div class="someDivClasses"></div>
</div>
<div class="topRight">
<div class="toMove"></div>
</div>
And the expecting result should look like this:
<div class="topLeft">
<div class="someDivClasses"></div>
<div class="toMove"></div>
</div>
<div class="topRight"></div>
From the last HTML code fences, you could clearly see that <div class="toMove"></div> has been moved from the division class topRight to class topLeft.
As of December 6, I've realized that it is required to use JavaScript to move a division inside a division. (And according to the answer below, it is not possible to perform this action using CSS.)
The only way I know how to do that is by using JavaScript. With CSS only, I think that it's impossible. Manipulating the DOM isn't a function of CSS.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to use Ruby (maybe its File class) to grab/change certain content in a html file. For example:
<html>
<script>
...
</script>
<!-- example -->
<div class="1">
<div class="2">
....
<p>...</p>
</div>
...
</html>
So can I use ruby to run through all the htmls in the folder and change all the html's content to include only <!-- example -->.*?<\/div> in each file?
NOTE:wants to add more clarification: not just copy the text, but the code too. I may grab the code content from <!-- example --> to <\/div>
Thank you and I'm looking forward to your reply!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am using Bootstrap and want to place a checkbox within a button, similar to what is done with Gmail to select all messages. I have looked at the Gmail CSS but have been unable to determine how they've done it.
Here is a simple example, made of DIVs with some CSS and a little jQuery to check the checkbox when the button is clicked:
jsFiddle demo
HTML:
<div id="container">
<div id="btnOuterDIV">
<div id="btnChkbox">
<input type="checkbox" id="btnCB" />
</div>
</div>
</div>
CSS:
#container {padding:50px;}
#btnOuterDIV{height:30px;width:80px;border:1px solid #ccc;border-radius:5px;}
#btnOuterDIV:hover{border-color:#888;cursor:pointer;}
#btnChkbox{height:15px;width:15px;padding-top:5px;padding-left:5px;}
jQuery:
$('#btnOuterDIV').click(function(){
alert('You clicked the button');
$('#btnCB').prop('checked',true);
});
Edit:
Button text (a label) added to the button: http://jsfiddle.net/crrojLho/2/
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm having a real problem with target _blank. The website is this: http://www.l2herbal.com/ When I placed a link with target _blank in the menu ('Forum') if the user clicks on it, it opens in a new tab BUT the problem is that http://www.l2herbal.com/forum remains in the old address bar. I've checked all the js but found nothing.
Chrome, Mozilla, IE acting the same.
It's an issue with this script: http://www.l2herbal.com/js/scrollTo.min.js
Here is a code that changes window URL:
window.location.hash = d
You applied it to all menu links in http://www.l2herbal.com/js/main.js:
$('#nav-boxes a, .logo a, #nav a, #navmobile ul a').scrollTo({ duration: 'slow' });
Change #nav-boxes a selector to exclude forum url.
Inspecting html from your site I did found href="/forum"
Place a dot(.) before /forum in href to indicate forum in current(root) directory
Use
<a style="width: 16.6667%;" class="menu-5" href="./forum" target="_blank">
<div></div><span>Forum</span></a>
Instead of
<a style="width: 16.6667%;" class="menu-5" href="/forum" target="_new">
<div></div><span>Forum</span>