Questions tagged [html]

191715 questions
1

votes
4

answer
1.3k

Views

How to set img size if image not loaded

I'm create a custom wysiwyg editor, with custom variables which are filled in from PHP after the content is saved. For example {image} is a placeholder, which will be filled from PHP after the content saved. In this case my content template in the HTML code looks like this As this is some kind of dr...
Roland Soós
1

votes
3

answer
12.4k

Views

Input text box and width 100%

I'm writing a simple form for sending some data to a database. I use it in my own company so I don't need to have a perfect style. I am using a table for the layout (this is okay in this application). Born I would like to set the width of the input text to 100% (to the end of the line) , but, if I...
Pepozzo
1

votes
2

answer
6.8k

Views

Vertically align middle without knowing the height

Title1 My content My problem: Yes I know how to vertically align most content. I've used many techniques, for example setting the parent as table and the child as table-cell. However most techniques requires me to either know the height of the parent/child - or they assume you are working with a bl...
1

votes
1

answer
4.2k

Views

Creating very large form elements with twitter bootstrap

I want to create a form for my front page that has very big elements, so I'm thinking I just define some custom css classes, but I'm struggling with how exactly I'm meant to scale everything up, eg padding, line height, etc. to match font size. I'm thinking of having a horizontal form with labels an...
Tesla
1

votes
1

answer
61

Views

DB pulling Function with PHP

I am very new to programming with PHP and am working on a fun little game to help myself learn. I got some code help from others on pulling a character's stats from the DB but am having trouble getting it to work. I just get "server error" when I try to run it right now. The Database information is...
Mike Kellogg
1

votes
2

answer
3.7k

Views

Center child div in parent div

I've gotten blind on this one.. I came across other similar topic but none of them helped in the ind. Long story short, I cant the "a,b,c,d" boxes in the center of the parent div - they need to be aligned to the boxed beneath, so the left is in the very left and the right is all the way to the right...
doingSomeSwiftHere
1

votes
3

answer
888

Views

URL not showing request parameters

I am taking some data from user-2 paramerters(using JS,html,jquery) , when user pclicks on GO, then calling servlet, passing these two parameters in get request: $.get("/Myservlet?param1="+myval+"®ion="+myregion,function(data){addToTables(data);hideLoading();},"text"); Servlet is returning data f...
ALBI
1

votes
1

answer
654

Views

hide an html div for some devices with bootstrap

I use from bootstrap 3, a have a div, i want to show this in only XS and LG devices. how I can do this work?
2 8
1

votes
1

answer
3.5k

Views

Dropdownlist Onchange Show other Dropdownlist

My problem is I want to create a category selecting system with javascript but when I choose an option it displays all divs; it should show only one div. For example : if value = emlak then show div id=emlak JS function getData(dropdown) { var value = dropdown.options[dropdown.selectedIndex].value;...
TeknolojiGezgini
1

votes
3

answer
192

Views

PHP Array issue when trying to auto select dropdown

Note: $i is set earlier in the code and there are 25 drop down boxes, the array shows the first 5 have values, so I need to set those drop downs to selected and show the relevant value. I have an array that contains the following: Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => [6] => [7...
Homer_J
1

votes
1

answer
204

Views

I can't make my navigation bar text links horizontal?

I have spent a while trying to find out how to make text links sit horizontally on a navigation bar, but to no success.I am EXTREMELY new to coding so this is probably extremely easy to do, i am using html and CSS, i have tried just putting them on the same line. Also using: #nav li a { color: black...
user2757607
1

votes
2

answer
2.2k

Views

HTML - Link to anchor without page jumping to top

I have a page with a fixed position header across the top, and links within to page to sections specified by id attributes. When I link to one of these, it puts the section right at the top of the page, so that the first part of it is overlapped by the header. How would I make the section leave spac...
Emma
1

votes
1

answer
82

Views

Javascript - Editing a class instead of ID not working / Editing the heigh of a class

Well, I tried to make something with JavaScript, but it won't work. I played around with document.getElementById('idhere').innerHTML('whateverhere'); and what not, and it worked fine. Then I was going to edit an class using document.getElementsByClassName('classname').innerHTML('whateverhere'); but...
prk
1

votes
2

answer
1.1k

Views

Google Apps Script Doc - add Image with Links

I need to insert an image with several links into a Google Doc via Google Apps Script. The image is a basic map, created in HTML5, with several hotspots. If displaying this image via my existing application, I would export the image to SVG and use SVG's native hyperlinking. Otherwise I can generate...
Keith Rockhold
1

votes
1

answer
204

Views

Web Page: How to update a portion of web page when it changes?

I'm actually very new to Web Page Development and would like to have a simple (offline) HTML page displaying in a Control or Browser itself. Target is to make a log viewer page, which is constantly updating through another application, (which I'm writing in C# plus some Powershell coding). It might...
Farrukh Waheed
1

votes
2

answer
190

Views

Google Map not shown

I write a web page, and inserted Google Map into it. But the map always not shown. I tried to use Firebug to see what happened, and found there are no errors. The div of map-canvas has been correctly replaced by Google Map API but that div not shown... I debugged this for several days, still no solu...
Lingfeng Xiong
1

votes
1

answer
5.7k

Views

On mouse hover show a div like jQuery Tooltip

Let consider fallowing scenario jhony ram lilly $(function() { $('p').hover(function() { $('#about').show(); }, function() { $('#about').hide(); }); }); Know on mouse hover on the p tag a div will showed,But it is taking always a fixed/absolute position,But I want to show it with respect to hov...
manchu
1

votes
2

answer
57

Views

Html Table width automatically expands

My table width automatically expands beyond div width. I searched a long time but I can't find any answer. I don't know where the issue went wrong too. So please help after see the below images. other Image:
Yellow Flash
1

votes
2

answer
310

Views

Using empty CSS class to find HTML elements

I've come across some HTML that uses classes without any real CSS attached to them rather than id's just to group/identify them with jquery selectors: html: CSS: (nothing, just an empty file) javascript: $(".someClass").each( ... ) I think I know why they do this: because html elements can only have...
user1884155
1

votes
1

answer
14.8k

Views

How to send multiple parameters using Html.BeginForm() in asp.net mvc?

Actually I want to send the image and the text in the textbox to the controller... @using (Html.BeginForm("Upload", "Home", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.Label("UserName:") @Html.Label("Upload:") Preview } and I am trying to retrieve them in the controller i...
Bharat Bhushan
1

votes
6

answer
1.3k

Views

How can I detect a html class with javascript?

I use these three lines of code to detect lesser internet explorer versions. Using javascript, how can I find out whether or not the lt-ie8 class is enabled for the element?
ben
1

votes
1

answer
192

Views

Dynamic added elements double effect after page transition

I have added dynamic from jQuery in my code, but when I go back one page and return to the page where the 's are added and you press them, they somehow click twice now. I have tried with an alert('something'); when I click: $(document).on('click', '#products a', function() { alert('something'); } A...
Emil Moe
1

votes
2

answer
359

Views

<div> background hide when I use “float: left” on <li> - menu

See code, below code is my question ;). HTML: Domov O nás Služby Kontakt CSS: .header { width: 1000px; margin: auto; margin-top: 8px; } .header ul { list-style-type: none; background: #363b40; } .header ul li { float: left; } .header a { color: #a3a7a6; text-decoration: none; } My question is why...
Danny
1

votes
2

answer
891

Views

Creating custom SSRS handler for field with HTML

I have an SSRS 2008 report with a field that contains and is configured to render as HTML. Some of the text in this field may contain IMG tags, and the IMG tag is not among the tags SSRS natively supports within its HTML rendering extension. I am trying to find a way to write a custom handler to ho...
David W
1

votes
2

answer
822

Views

What's the reason that document.getElementById works but jquery doesn't?

This question might seem elementary to some but I can't get my head around it. I am working on a XMLHttpRequest Ajax file upload. the first step is to selected the fileUpload element that is on my page and for some reason javascript works but not query, here's the following two lines: var fileInput...
Mutu Yolbulan
1

votes
3

answer
155

Views

HTML to JS Object

I am using handlebars to compile and get the html from the JS object. Is it possible to transform (html) back to JS object (using handlebars or anyother library)? To be more precise; Using handlebars, I have the following template: {{qty}} {{rate}} {{gstPerc}} {{discountPerc}} {{amount}} and follow...
Kamran Ahmed
0

votes
1

answer
30

Views

copy value of html button after the mouse has hovered over the button for 1 second

I have a series of buttons, and I'd like to copy the value of the button to the clipboard after the mouse has hovered over the button for two seconds. function getButtonValue(obj) { document.getElementById(obj); var dummy = document.createElement("input"); document.body.appendChild(dummy); dum...
James Norris
0

votes
2

answer
29

Views

how to check user authentication status on the server side

I want to check user authentication before showing a html page my server.js file is like this const express = require('express'); var jquery = require('jquery'); var admin = require("firebase"); const app = express(); app.use(express.static(__dirname + '/public')); var serviceAccount = require(...
learner101
0

votes
0

answer
27

Views

HTML is processed first in the footer

Ive got a problem In my Footer there is am Part Html the PHP and then HTML again. The Problem is that on the website the whole HTML is show before the PHP. You can see it on the photo below. Thanks, J.S. Sponsoren:
Joel S.
2

votes
2

answer
22

Views

Defining fr for grid only for first and second child of ul

I am creating a navigation for a website with ul li. There are currently 7 link in it. I've set the display of ul to grid with repeat(7,1fr). However I want the first and second li to be .5fr and 1.5fr. How can I do it? nav ul { display:grid; grid-template-columns: repeat(7,1fr); } How I want it to...
Andy Brooke
1

votes
0

answer
13

Views

Slicebox showing no error, but still nothing on screen

The code is not showing any error in developer mode, but still not working. I took it from https://www.youtube.com/watch?v=q_RaXJhcwJE If you find any error or any mistake, please help me. The code's exactly the same as in the video but I think there might be some bug, or perhaps some additional fi...
Abdul Wahab
1

votes
2

answer
1.5k

Views

How to extract a link from an html file using bash

I am trying to create a shell file that will grab all of the images from the toplist of wallbase.cc. So far I have it so that it curls the html code (using mac so no wget), and grabs all the links to the images. The only problem I am having is that when I grep for the links it returns . What I a...
QuinnFTW
1

votes
5

answer
252

Views

Position image center of div whetever image size

I have in a problem with centering an image.Hence I have many div and in every div have two div that is divided into two.In those two div I will show two image.Each of these two div is 300 pixel.Problem is images may be small or 300 pixel and I have to show images center if small and if image is 300...
Rasel Ahmed
1

votes
4

answer
11.1k

Views

How to move items left and right in an html table using css? -

I have 6 s in my s and I want the last 3 in each row to all be closer together. How can I move them? Here is my html: Test.com Funtown Click Here R My First Try 100 / 250 plays Players Duplicate Archive 1 The best try 0 / 250 plays Players Duplicate Archive Could be better 0 / 50 plays Players Dupl...
MattCamp
1

votes
2

answer
5.6k

Views

How to center two columns using CSS without using a fixed width container?

I have seen this thread which answers how to center two columns given that you know the total width of both columns in pixels. What if I don't know that or don't want to hard code that? If I at any point want to change the width of the columns I need also to recalculate the with of the wrapper manua...
Nilzor
1

votes
2

answer
1.9k

Views

Scroll to the top of the page without refreshing/reloading of that page

I'm developing a mobile website. This website was mostly viewed in Opera mini and UCbrowser. I have added scroll to top button as but this on click it reloads and then goes to the top. some times, it doesn't work.. for details go to feinix.org/mevents.php in opera mini and ucbrowser view m.facebook...
Kanmaniselvan
1

votes
2

answer
19.6k

Views

Onclick event on list item

I'm trying to follow this answer, but rather than using a button as he does in his jsfiddle, I'm trying to use list items: http://jsfiddle.net/hqvDT/108/ It looks like it should work, but when I try to select some text and then press B (for bold), it doesn't actually bold the text. What's wrong? HTM...
Bagwell
1

votes
4

answer
168

Views

Javascript change label color in a loop

I have a lot of labels I created on a php page, they all have an id like ... I have to change their color to #D8D8D8 and I thought to do it using a for loop: for(i=1;i
Alberto Rossi
1

votes
3

answer
1.9k

Views

how to restrict html table row height in WebGrid

html table one column contains lot of text and table looks ugly, there is too much space between rows. How to make table better so that there is not so much space, long column should be wider and maybe some of content not visible? I tried to use max-height , but it is ignored. Table is generated aut...
Andrus
1

votes
2

answer
912

Views

Display Javascript/Html/PHP as text

I am trying to display code on a webpage, just as text, for the user to view. The code snippet is obtained from a database, input using a form, and put in a div using PHP. Jquery is then used to replicate the html of that div in another element. The code from the database will never be executed; I a...
DVCITIS

View additional questions