Category "html"

How to center body on a page?

I'm trying to center the body element on my HTML page. Basically, in the CSS I set the body element to be display: inline-block; so that it is only as wide a

How to add full width background in two column (col-md-6) on bootstrap 3

I would like to ask how to add full width background on two column (col-md-6) in bootstrap 3. Please refer to the image. As you can see in the image there are

How to override the title "ionicons-v5_logos" when I hover over the github-logo provided by ionic

I'm trying to embed the GitHub Logo by ionic (v5) into my project which redirects to the GitHub repository of the project I made. The logo has this annoying t

CSS: Box-Shadow Transition Multiple Shadows

So I have a button with initial shadow set. I want to transition the shadow on hover into another value of shadow. button { height:100px; width:200px

Anagram with JavaScript

const myAnagram = (arr1, arr2) => { let str1 = arr1; let str2 = arr2; let temp1 = []; let temp2 = []; let flag = 0; if (str1.length !== str2.len

JavaScript Form Calculation with Radio Buttons & Textboxes

The jQuery library is not importing correctly and the form is not displaying the answer in the BAC field when clicking on the button. The answer should be rela

Logo (h1) with absolute position to move above navigation on resize

I am creating a website layout which uses a position: absolute for the logo, to allow it to sit over another div below for stylistic reasons. I have been able t

Change color of button with javascript

I'm having trouble changing the color of a button with a simple function, the color doesn't change at all. <html> <head> <meta http-equiv

CSS, how to bring a div to the top of its sibling elements while it's below in the HTML?

I have a div after some other divs and that's why it is not at the exact top of the viewport. But I want to bring it to the top without actually changing its po

jQuery Ajax Post with data

why it isn't working. Am trying to call a php file when onclick of a button occurs with some parameters. It is getting executed till alert statement in jsfile.j

React Pagination Styling

I am using react-js-pagination npm package, but styling doesn't work for me. import Pagination from "react-js-pagination"; import "bootstrap/less/bootstrap.les

Ordering <h:outputStyleSheet> and <link rel="stylesheet"> swapped

In my JSF 2.2 Facelet I have the following code: <html ... > <f:view> <h:head> <h:outputStylesheet name="bootstrap-lib/css

Why I get 404 error in spring boot post request using Thymeleaf

I user spring boot to create an integral calculator. I got a strange 404 error while I try to handle post request. Here is my controller class that should handl

Remove scrollbar from iframe

Using this code <iframe frameborder="0" style="height: 185px; overflow:scroll; width: 100%" src="http://www.cbox.ws/box/?boxid=439&boxtag=7868&sec=m

CSS- Changing the width of a search box

I'd been trying to change the width of the search box in name="size" of my HTML template but can't do it even when I tried width:. html: <form class="form"

Bootstrap Table in Angular 12

i create a table with bootstrap; im using angular 12, when i use only one component with table head and body works fine, when i create another component with ta

Best way to include CSS? Why use @import?

Basically I am wondering what is the advantage / purpose of using @import to import stylesheets into an existing stylesheet versus just adding another ... <

Cannot trigger submit from JavaScript

I am trying to create a popup for a search box and submit the keyword with a form. I browse similar questions on the internet but the only solution I applied is

Bootstrap button text color

I am using the bootstrap 3 custom buttons but cant for some reason change the brand text colour nor the dropdown triangles. i've tried a couple of things, but s

Prevent Browsers not to remember password

We have an application with a login screen which has input field text and password. What I am trying to achive here is; Prevent browsers to ask if, user wants