forum Posted April 9 Share Posted April 9 Why, when laying out in the header, and then in the main or footer, the top elements in the same main or header begin to shift, is there really no tag that fixes these elements? Quote Link to comment https://forums.phpfreaks.com/topic/319718-why-does-the-top-content-always-move/ Share on other sites More sharing options...
requinix Posted April 10 Share Posted April 10 1 Quote Link to comment https://forums.phpfreaks.com/topic/319718-why-does-the-top-content-always-move/#findComment-1620677 Share on other sites More sharing options...
gizmola Posted April 10 Share Posted April 10 23 hours ago, forum said: Why, when laying out in the header, and then in the main or footer, the top elements in the same main or header begin to shift, is there really no tag that fixes these elements? Because HTML provides structure not layout. CSS provides layout, and in particular css position has many options for positioning elements in a particular place. Sticky, Fixed and Absolute are all position settings that might accomplish whatever it is that you are trying to do. Without specific examples of html and css you are working with, there isn't much more anyone can do for you. Quote Link to comment https://forums.phpfreaks.com/topic/319718-why-does-the-top-content-always-move/#findComment-1620913 Share on other sites More sharing options...
Danishhafeez Posted April 19 Share Posted April 19 To address layout consistency issues in HTML and CSS, ensure proper clearing of floats and utilize techniques like clearfix to prevent unexpected shifts. Additionally, employ responsive design principles and semantic HTML elements to maintain stable layouts across different screen sizes and devices. Best Regard Danish Hafeez | QA Assistant ICTInnovations Quote Link to comment https://forums.phpfreaks.com/topic/319718-why-does-the-top-content-always-move/#findComment-1621794 Share on other sites More sharing options...
Barand Posted April 19 Share Posted April 19 Doesn't clearfix make a mess of your screen? Quote Clearfix - the perfect glue for joining clear parts onto a plastic model. You'll no longer see frosting inside the clear acrylic component with Clearfix. Quote Link to comment https://forums.phpfreaks.com/topic/319718-why-does-the-top-content-always-move/#findComment-1621843 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.