w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Positioning footer at the bottom of the page
you can write the inline CSS like mentioned below code :- <div style="background-color: red; ; overflow:none; width:100%; height:80px; position:fixed; bottom:0%; left:0%;" > </div> DEMO

Categories : CSS

Full Page width without using absolute Positioning
<div class="main col1-layout">...</div> Try using .main.col1-layout {float:none; width:100%; padding-top:0px;} EDIT To see how to do this, I looked at the source of the page (via inspect element in chrome, or firebug in firefox). Then I looked at the various elements that could be causing the issue, and I noticed the css had it set to be 920px. Once this was overridden it showed up correctly. You might still have some issues with layouts more than 1 column wide (if you decide to use them).

Categories : CSS

Page by refresh/visit positioning left at 4:3 aspect
The CSS. You set the pictures to be to be positioned like: (example is header1.png) element.style { position: absolute; top: 140px; left: 1400px; } This means 1400 px plus the width of the picture, 800 px, which gives a total of 2200 px. This means a 4:3 screen simply isn't wide enough. Instead of using absolute-positioning you center you content in a dynamic way (screen size wont matter): center.content { width:800px; margin:0 auto: } You can play around with this here.

Categories : HTML

absolute positioning to make a div extend the rest of the page?
I hope this is what you want,see the updated fiddle http://jsfiddle.net/JUnTn/2/ I wrapped the two div's inside another div. #test{ width:100%; } #map-column{ width:10%; float:left; } #map-container{ float:left; width:90%; }

Categories : HTML

Kendo Drop down list positioning issue on scroll of the page?
The code bellow will let your Dropdown-list be closed whenever You try to scroll. $('#ScrollingBox').scroll(function() { $("#YourDropdownListID").data("kendoDropDownList").close(); });

Categories : Jquery

Rotate links and vertically centre on page with fixed positioning
http://jsfiddle.net/X3Nf9/8/ div { position: fixed; width:100%; top:50%; margin-top:50vw; } You might want to check for browser compatibility, some older browsers may not like the vw unit. Since you are using transforms, you are already limited yourself to newer browsers, but I'm not sure there is an exact overlap of which support the vw unit.

Categories : CSS

Controls are not positioning correctly when displaying validation summary on top of web page
Check the width of <div id="validationSummaryHolder" class="validationSummaryHolder"> It is not likely the the validation summary's insides are causing anything of their own accord since they are contained in that div, but maybe the containing div is stretching or shrinking the page. Also some html in the question would help. If you can't paraphrase the html here, another option would be to show the wire frame of the page with and without the validation summary and the answer should be clear at that point what is happening.

Categories : Javascript

element positioning. changing the base point (top-left corner) while positioning (not transform)
I think I see what you're trying to ask. In short the answer is no. However if you use absolute positioning, and take a look at this quick test: HTML <div class="wrap"> <div class="absolute"> </div> </div> CSS .wrap { position: relative; width:400px; height:400px; background: red; } .absolute { position: absolute; bottom:0; right:0; width:100px; height:100px; background: blue; } You should see that div.absolute is positioned based on it's bottom right corner. Absolute positioning can be used in this way. See the fiddle here: http://jsfiddle.net/3RqSS/ Otherwise, you need to use a combination of absolute positioning and margins to center things. E.g. .absolute { position: absolute; top:50%; left:50%;

Categories : HTML

stop menu from getting untidy when changing from relative positioning to absolute positioning
First off, there's a bit of html fixup needed. ( an extra double quote, a badly closed <br/> element, but ... well ... perhaps, instead of restructuring your whole thing to avoid the extra white-space at the bottom, you could just add #holder { overflow: hidden; } to make it go away. http://jsfiddle.net/hD6NY/

Categories : Asp Net

When positioning a div with relative positioning, is there a way to make the next div "flow" up to where the previous div now sits?
Use a negative top margin instead: http://cssdeck.com/labs/n3tbf9ro .myimg{ display: block; margin-top: -20px; margin-bottom: 0px; margin-right: auto; margin-left: auto; } Or get rid of the bottom margin on the previous element: http://cssdeck.com/labs/lsnlxk8i .section1 :last-child { margin-bottom: 0; }

Categories : HTML

Positioning of items with vertical text - Hover / Absolute positioning
add vertical-align: top to your li's ul li { display: inline-block; width: 35px; height:150px; line-height:35px; font-size: 12px; font-weight: bold; font-family: arial; cursor: pointer; position: relative; vertical-align: top; } jsFiddle

Categories : HTML

how to nest css boxes with relative positioning and absolute positioning
Use position:relative; on the outer parent - in your case A. Then place all other divs using position:absolute and set the offset using top, bottom, left and right properties. Each <div> will be automatically relative to it's direct parent. Working jsFiddle example HTML: <div id="a"> <div id="b"> <div id="c"></div> </div> </div> CSS: #a{ position:relative; width:200px; height:200px; background:red; } #b{ position:absolute; top:75px; left:100px; background:cyan; width:75px; height:100px; } #c{ position:absolute; background:white; top:10px; left:10px; width:40px; height:40px; }

Categories : HTML

Convert Absolute Positioning Into Relative Positioning
by removing the absolute positioning of the dragged div you must place its tag to a different place in the dom in order to get it repositioned. For example if you drag #divOne so that it visually moves between #divTwo and #divThree what you should do is remove the absolute positioning of #divOne and move its tag between the two other divs: <div id="divTwo"></div> <div id="divOne"></div> <div id="divThree"></div> If you have a well-defined grid this will work. If I were you what I would do is to give a standard class to any div in my grid that I want be re-arrangeable. E.g., the class "arrangeable". When the drag-end fires I would calculate where my dragged div must be placed in the dom using this formula: The dragged div should be moved to another

Categories : Javascript

Absolute positioning inside relative positioning?
A good example would be when you want to position something to the page or "relative" to a container/div. Here is my Fiddle http://jsfiddle.net/doitlikejustin/RdWQ7/2/ This shows you that without the absolute div being inside of a "relative" div, the contents are aligned to the document body. Notice that the green div (#box1), which has position: relative, the div inside (#inner1) it is aligned top/right INSIDE of #box1. The blue box (#box2), which has the exact same HTML layout as the green box (#box1), does NOT include position: relative and notice that the div inside it (#inner2) is aligned to the top/right of the body #box1, #box2 { width: 100px; height: 100px; color: white; text-align: center; line-height: 100px; } #box1 { background: green; position:

Categories : CSS

Positioning divs with css using absolute positioning
Don't position your containers absolutely. .container { width: 400px; height: 400px; margin: 10px; position: relative; float:left; } At the end of the last container div, you'll need a div to clear: left; <div style="clear:left;"></div> Now when you add more div's, they will auto float, and the container will get cleared.

Categories : CSS

CSS re-positioning of sections without absolute positioning
Nope, there is no way to do that without either changing your HTML or using absolute positioning. You've set up the flow of the document to be a certain way (by putting your HTML in a certain way), therefore the only way you can change that flow without changing the HTML is to use a directive that takes the element out of the normal document flow (and the only two that do that are absolute and fixed). Barring those two options, the only thing you have left is JavaScript, but even then, it would be reordering the HTML on the fly (putting your last one first). This can work, as long as the user agent that you're looking to support by putting it in the order you have doesn't use JavaScript.

Categories : CSS

How do I reference a CSS file on my ASPX page?
First of all, change it to <link href="Content/Site.css" rel="stylesheet" type="text/css"/>. Also, ensure that that the path to the stylesheet is correct. Be sure you have a DOCTYPE declaration at the top of your file.

Categories : C#

How to reference an asp.net page that is compiled to a single dll
Redirects happen via HTTP, not through .NET. So there's no way to redirect to a class, you have to redirect to a URL. So you'll need to know the relative URL, and redirect traditionally. Possibly: Response.Redirect("../myothersite/P1.aspx");

Categories : Asp Net

I am not able to add reference of my class into my aspx page
Or i need to add this class under "App_Code" folder ? If you are using a WebSite then you should use the App_Code folder to add code. If you are using a WebApplication, then you can place the code wherever you want. Please refer to the WebSite vs Web Application article on MSDN. Also from the error message you seem to have used SQL as namespace but in the code you have shown you used SQl which obviously is not the same thing in C#.

Categories : C#

Getting a null reference on my page from a jquery function
$('.consumerbrochurerequest' > [id$ = '_rblDeliveryOption']) should be a string: $(".consumerbrochurerequest > [id$='_rblDeliveryOption']") As you have it now, it evaluates to a boolean value (false) and without error since that is a valid array, and therefore a valid expression. But $(false) evaluates to [] (an empty array) and you attempt to access the first element.

Categories : Javascript

How to reference the parent element in the DOM in an ASPX page?
td needs to be ran server side for it to be accessed and classed as a parent element. <td id="td" runat="server"> <asp:TextBox MaxLength="255" ID="myTextBox" runat="server"></asp:TextBox> </td>

Categories : HTML

What does the sentinel value NULL mean in Android Developer JSONObject reference page
This means that the Standard Java null values in Json Object causes them to be ignored and do-not appear in the output. This is baiscally done to compact the output. Where as the sentinel JSONObject.NULL will add null in the output string. An example will make you clear JSONObject jObject = new JSONObject(); jObject.put("First Name", null); jObject.put("Last Name", JSONObject.NULL); //Print jObject Log.d("JSON OBJECT", jObject.toString()); This will give the output like {"Last Name":null}

Categories : Android

I do not understand description of android.graphics.Matrix.setValues() in reference page
the 16.16 does not refer to the matrix in question but the data in each cell of the matrix 16.16 integers have a 16 bit integer part, and a 16 bit fractional part (16 bits before and 16 bits after the decimal point) and are fixed point instead of floating point. I believe you get better performance from using 16.16 integers than floating point and they have a fixed point.

Categories : Android

Get Twitter Bootstrap navbar to load different pages, not just reference to divs on same page
Just put the url of the page in ahref <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="PUT HERE THE URL OF THE PAGE ">Action</a></li> <li><a href="http://www.google.com">Go to Google</a></li> </ul> </li> </ul>

Categories : Javascript

Layout page and simple mvc razor view in Orchard Module and css, js reference issue
Your URL is wrong - it should be either: jquery-1.9.1.js. Without leading tilde and Scripts/. Orchard will make sure the final URL will lead to /Scripts folder in your current module, or ~/Modules/Your.Module/Scripts/jquery-1.9.1.js

Categories : Asp Net Mvc

"Object reference not set to an instance of an object" hitting when loading a xaml page for the second time and more attempts
Never mind. I did considerable amount of research and I found what is giving me this exception. There is an async task which is GetGeopositionAsync in the page from which I am navigating to SearchLocation.xaml. If I wait in AddLocation.xaml page until the geoposition is acquired, it doesnt throw me any exception when I navigate to SearchLocation.xaml page. So I need to issue a cancellation token whenever I navigate away from the page. And IT WORKS !

Categories : C#

stale element reference: element is not attached to the page document
What is the line which gives exception ?? The reason for this is because the element to which you have referred is removed from the DOM structure I was facing the same problem while working with IEDriver. The reason was because javascript loaded the element one more time after i have referred so my date reference pointed to an unexisting object even if it was right their on UI. I used the following workaround. try{ WebElement date = driver.findElement(By.linkText(Utility.getSheetData(path, 7, 1, 2))); date.click(); } catch(org.openqa.selenium.StaleElementReferenceException ex) { log.debug("Exception in finding date"); log.debug(e); WebElement date = driver.findElement(By.linkText(Utility.getSheetData(path, 7, 1, 2))); //WebElement date = driver.findElement(By.xpa

Categories : Java

Reference found where even-sized list expected in Perl - Possible pass-by-reference error?
In your main, you do listHash(\%bo_ref); This passes a hash reference to the sub. However, it tries to unpack its arguments like my %hash = @_; Oops, it wants a hash. Either, we pass it a hash: listHash(%bo_ref). This saves us much typing. Or, we handle the reference inside the sub, like sub listHash { my ($hashref) = @_; foreach my $key (sort keys %$hashref) { my $value = $hashref->{$key}; print "$key => $value "; } } Notice how the reference uses the dereference arrow -> to access hash entries, and how it is dereferenced to a hash for keys.

Categories : Perl

Jasper Unicode issue with Field Reference but not Resource Bundle Reference
This turned out to be a two-part problem. I was using a different diacritical character in the $F expression from the $R expression, and the $F diacritical was not supported by my font. I was HTML-escaping the string that fed to Jasper Reports, and I needed to XML-escape it instead.

Categories : Java

VB.Net (2008) Reference Copy Local, Reference dependencies and Installer issues
Short answer is you will always need to install the full framework if you use any of it. The Dependency tree in the .Net framework is quite deep, and though you do not depend on other .Net assemblies, it is highly likely that the portions you depend on will. You could use a package publisher like WiX (Windows installer XML Toolset) to create a more user friendly installer experience... http://wixtoolset.org/

Categories : Dotnet

Excel: find matching text against reference and paste corresponding values from reference
Name A:D in Worksheet 2 (say array) and apply =VLOOKUP($N2,array,COLUMN()-13,FALSE) in O2 of Worksheet 1 (assuming the top e is in N2) and copy across and down as required.

Categories : Excel

C# Class Instance Holding String Reference But Not Object Reference
This won't work. RedirectToAction results in a 302 to the browser which just is not capable of carrying complicated models. There are some alternatives, you could use the TempData to store the model, do the redirect and retrieve the data. You could probably even call the EatCandy action directly instead of redirecting, however the auto matching the view won't work and you'd have to force the "EatCandy" view name at the end of the EatCandy action.

Categories : C#

static_cast compiler error from derived reference to base reference
All credit goes to @jogojapan for this. The operator== in both the derived and base classes were never defined/declared as const. Changing all the equality and inequality operators to const functions yielded the program compiling. Also I had to slightly change the static_cast synatax to cast to a const type. That is: static_case<const Base&>(derived_object); Thanks again for the help!

Categories : C++

Rvalue reference constructor incorrectly called with an lvalue reference
If you're going to copy or move anyway, pass by value. In a simplified way: template <typename T> void foo(T x) { T * p = new T(std::move(x)); } Otherwise, if you have a universal reference like template <typename T> ... T &&, you can get the base type as typename std::decay<T>::type (from <type_traits>). In that case, you should pass the argument as std::forward<T>(inBase).

Categories : C++

Overload resolution between object, rvalue reference, const reference
What are the rules here? As there is only one parameter, the rule is that one of the three viable parameter initializations of that parameter must be a better match than both the other two. When two initializations are compared, either one is better than the other, or neither is better (they are indistinguishable). Without special rules about direct reference binding, all three initializations mentioned would be indistinguishable (in all three comparisons). The special rules about direct reference binding make int&& better than const int&, but neither is better or worse than int. Therefore there is no best match: S1 S2 int int&& indistinguishable int const int& indistinguishable int&& const int& S1 better int&& is

Categories : C++

Making a DOM element reference change to a null reference when removed from the DOM
You can't, because you store in a variable, just call var a = document.getElementById('a') when you need check. var a = document.getElementById('a'); alert(a); // Alerts "[object HTMLDivElement]". a.parentNode.removeChild(a); a = document.getElementById('a'); alert(a); // "undefined".

Categories : Javascript

Error: "Reference to a non-shared member requires an object reference"
I'm guessing that the line you are failing on is Dim script As String = M3Script.vbscript If that is the case, it's because you are declaring the M3Script, but you are not creating an instance of it. Try setting the object somewhere by adding M3Script = new MILLCOMPANYLib.CScripting to your code, or however you would load it (perhaps M3Script = CreateObject("MillSystem.Script")?)

Categories : Vb.Net

Object storing a non-owning reference that must be informed before the reference is destructed
You can use the double link approach even with more than one other dependent object. You only have to link together the dependents of the same object: class Foo { public: explicit Foo(double x) : v(x), foot(nullptr), next(nullptr), dept(nullptr) {} // construct as relative object; complexity O(1) Foo(Foo*f, double x) : v(x), foot(f), dept(nullptr) { foot->add_dept(this); } // destruct; complexity O(n_dept) + O(foot->n_dept) // O(1) if !destroy_carefully ~Foo() { if(destroy_carefully) { for(Foo*p=dept; p;) { Foo*n=p->next; p->unroot(); p=n; } if(foot) foot->remove_dept(this); } } double x() const { return foot? foot->x() + v : v; } private: double v; // my posit

Categories : C++

Using VBA cell reference to create external reference to closed workbooks
You can certainly use the Index/Match functions to reference closed workbooks, e.g.: Use index/match to find "steve" in column A of a closed workbook named "Test.xlsx" and return the value in corresponding row, column B: =INDEX('C:Usersdavid_zemensDesktop[test.xlsx]Sheet1'!$A$1:$B$1,MATCH("steve",'C:Usersdavid_zemensDesktop[test.xlsx]Sheet1'!$A:$A,FALSE),2) Obviously, you could change the *lookup_value* of "Steve" to anything, including a cell reference.

Categories : Vba

Why doesn't returning a reference to the current object always return the same reference?
Regarding SimplifiedVisualObject version: The getTransferData() method return this. Since you are creating two different instances you are effectively comparing a.equals(b) which in general is always false unless equals() is overriden. Regarding your original question: If you debug your code you will see that this is also the case with the VisualObject. Every time you call getTransferData() a different instance is returned thus the equals() comparison returns false. If you use DataFlavor.imageFlavor it will work as expected though I cannot explain exactly why. Perhaps when using an unknown flavor the default drag & drop implementation does not know how to handle it. As a result the transferable object is serialized and de-serialized during the transfer resulting in always creating

Categories : Java



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.