unnecessary width and height is shows in my html page............


experts plz solved out

Thanks in advance

Dani AI

Generated

The original post from gave no code, so replies from and correctly asked for a sample, and pointed toward resetting defaults. That is a reasonable first step, but the cause is usually one of a few repeatable layout issues. A short, practical debugging checklist below helps isolate which one it is.

Start by inspecting the page with the browser DevTools (Elements/Computed). Temporarily apply a visible outline to all elements to see what extends past the viewport:

* { outline: 1px solid rgba(255,0,0,0.2); }

Common culprits: images or iframes that exceed their container, elements set to width:100% plus horizontal padding/border, absolutely/fixed positioned elements placed outside the flow, long unbroken text, and inline-block whitespace. Prevent image overflow with a responsive rule such as img { max-width:100%; height:auto; } and consider using box-sizing:border-box so padding is counted inside widths. Using overflow-x:hidden can hide the symptom but not fix the root cause; use it only after identifying why something is overflowing.

For deeper reading on the layout behaviors and fixes, see MDN on the CSS box model and on overflow handling: The CSS Box Model and overflow. A minimal reproducible HTML/CSS example makes precise diagnosis straightforward.

Recommended Answers

All 4 Replies

Do we need to guess what you have ?

Unneccessary thread started...lol

No code no help.

unnecessary width and height is shows in my html page............


experts plz solved out

Thanks in advance

use this code at top of your style sheet

*{
margin:0
Padding:0
}

Just put some more info what you want exactly

unnecessary width and height is shows in my html page............


experts plz solved out

Thanks in advance

Try to put your code also

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.