Need assistance! My footer isn't showing up properly at the bottom even after applying clear:both. Can someone help please?
If anyone can provide guidance, it would be greatly appreciated.
Thanks for all your help in resolving the issue.
Need assistance! My footer isn't showing up properly at the bottom even after applying clear:both. Can someone help please?
If anyone can provide guidance, it would be greatly appreciated.
Thanks for all your help in resolving the issue.
In order to achieve a clear:both effect for your footer, it is necessary for the parent element to float the elements. However, this does not apply in your current situation.
The most effective solution would be to implement a clearfix.
Simply copy and paste the provided code into your CSS file, and then assign the class "cf" to your div element.
Your code structure should resemble the following:
<div class="cf">
<div id="smallpics" class="...">...</div>
<div id="smallpics" class="...">...</div>
<div id="smallpics" class="...">...</div>
</div>
I hope this information proves to be helpful!
By utilizing the footer, I was able to achieve this:
<!DOCTYPE html>
<html>
<head>
<base href="http://www.vellosdesigns.com/newsite/build-2/" />
<style>
html, body {height: 100%;margin: 0;background:#000;}
h1{color:#787979;}
#wrapper {min-height:100%;margin: 0 auto -75px;}
#header {min-width:100%;height:150px;float:left}
#headerContent {width:1112px;margin:0 auto;}
#separator, #footer {height:180px;}
#content {margin:0 auto;width:1112px;padding:15px;}
#footer {min-width:100%;float:left;color:#fff;background-color:#7f7f7f}
#footerContent {margin: 0 auto;width:1112px;padding:10px 0px;}
.address {color:#787979; text-align:right; font-size:12px; float:right; line-height:190%;}
#gallery {background:#FFF; height:450px;}
#navcontainer {float:right; margin-top:15px;}
#navlist li { display: inline; list-style-type: none; }
#navlist li a:link {text-decoration:none; color:#787979; font-size:12px; margin-left:25px;}
.smallpics {width:545px; height:180px; float:left; margin-top:40px;}
.s-pic-b,.s-pic-d {margin-left:20px;}
.s-pic-c,.s-pic-d {padding-top:50px;}
div.fadehover {position: relative; }
img.a {position: absolute; left: 0;top: 0; z-index: 10; }
img.b {position: absolute; left: 0;top: 0; }
</style>
<script type='text/javascript' src='jquery-1.9.1.js'></script>
<script type='text/javascript'>
$(document).ready(function(){
$("img.a").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
});
</script>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="headerContent">
<p><span class="address">Whetstone - 020-8888-8888 <br />Kensington - 020-8888-8888</span></p>
<img src="logo.png" />
<div id="navcontainer">
<ul id="navlist">
<li><a href="#">Bespoke</a></li>
<li><a href="#">Contemporary</a></li>
<li><a href="#">Achitecture & Interiors</a></li>
<li><a href="#">Management & Build</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
</div>
</div>
<div style="clear:both;"></div>
<div id="content">
<div id="gallery"></div>
<div class="smallpics s-pic-a">
<h1>Bespoke</h1>
<div class="fadehover">
<a href=""><img src="a-bw.png" alt="" class="a" /><img src="a-color.png" alt="" class="b" /></a>
</div>
</div>
<div class="smallpics s-pic-b">
<h1>Contemporary</h1>
<div class="fadehover">
<a href=""><img src="b-bw.png" alt="" class="a" /><img src="b-color.png" alt="" class="b" /></a>
</div>
</div>
<div class="smallpics s-pic-c">
<h1>Achitecture & Interiors</h1>
<div class="fadehover">
<a href=""><img src="c-bw.png" alt="" class="a" /><img src="c-color.png" alt="" class="b" /></a>
</div>
</div>
<div class="smallpics s-pic-d">
<h1>Management & Build </h1>
<div class="fadehover">
<a href=""><img src="d-bw.png" alt="" class="a" /><img src="d-color.png" alt="" class="b" /></a>
</div>
</div>
<div style="clear:both;"></div>
</div>
<div id="separator"></div>
</div>
<div id="footer">
<div id="footerContent">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
</div>
</body>
</html>
I'm having an issue where the right side of all the text on my website is being cut off. I've tried using Firebug to inspect the element, but it's always a paragraph text and they have different parent divs. I'm not sure what CSS adjust ...
Imagine a circle link that transforms into a playful animation with a pink shape when you move your mouse over it: I'm torn between different ideas on how to achieve this effect. One approach could be to use individual elements for each drop, utilizi ...
Can an image bullet style loaded via a URL be resized using JavaScript code like this: var listItem = document.createElement('li'); listItem.style.listStyleImage = "url(some url)"; listItem.style.listStylePosition = "inside"; I aim to increase ...
I'm having trouble figuring out how to make the Select2 plugin work for my specific color selection feature. My goal is to allow users to choose 5 colors from a list, including an "Other" option. When the user selects "Other", they should be able to ...
Encountering an issue with [height] on the main component and seeking a solution Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '753'. Current value: '731'. I have th ...
Can CSS3 be used to style the children divs of a parent div with specific conditions, such as: If there are 3 divs, apply property x to divs 1 and 2. If there are 2 divs, apply property x to div 1. If there is 1 div, do not apply property x to it. Is jQ ...
Recently, I started learning about jQuery and came across a tutorial on creating a sticky nav bar. However, something went wrong during the implementation and now I don't know how to fix it! In my Script file, I have written code that should run on l ...
HTML: <link rel="stylesheet" type="text/css" href="styles.css"><table border="0" cellpadding="0" cellspacing="0" class="month"> <tr><th colspan="7" class="month">January 2017</th></tr> <tr><th class="mon">Mo ...
As much as I hate to ask for help with a "how do I do this" question, I'm at my wit's end trying to figure it out on my own. I'm working on a page layout that requires a center column of exactly 960px width to be horizontally centered on th ...
Having trouble adjusting the height of input textfields using in-line css. <FormControl sx={{ "& .MuiOutlinedInput-notchedOutline": { borderColor: "blue", }, "&.Mui-focused .MuiOutlinedInpu ...
I am encountering an issue. I am working with Node.JS nodemailer. const url = `${url}`; var mailOptions = { from: 'stackoverflow', to: email, subject: 'test', html: 'Please click this email to confirm your email: &l ...
I am using d3.js to draw SVG with the transform:rotate(180deg) property. It displays perfectly on Chrome, but doesn't work on IE11. I tried changing it to rotateY(180deg), and it works with div elements but not with text elements. Here is my screen an ...
I am seeking a way to vertically align text within a card using Vuetify or traditional CSS in a Vue project. Here is my code: <template> <div> <v-container class="my-5"> <v-row justify="space-between"> <v- ...
I'm currently working on designing a header with three main elements: ---------- LOGO ---------- hidden navigation bar ---------- BUTTON ---------- This header layout is supposed to grow into the following structure: ---------- LOGO ------ ...
Is there a method to target all elements in the DOM with a border-radius other than 0? If anyone has suggestions, it would be greatly appreciated! ...
When working with Bootstrap 4, I am aware that the .col-xs classes have been removed. Instead of using .col, I have tested it on Bootstrap 3.5 which is currently being utilized. <div class="col-xs-4"> Table content for left ...
Could you help me with UL/LI syntax and how to create a wrapping list? For example, I would like to display: 1 2 3 4 5 6 As: 1 4 2 5 3 6 Currently, I have a header, content, and footer all set with specified heights. I want the list to wrap when ...
I've been working on developing a calculator using HTML and JavaScript, but I'm facing an issue when trying to add two numbers together. Strangely enough, when attempting to calculate 1 + 0, I get the result of 512, and for 1 + 1, it returns 1024 ...
Is there a way to add a space between two words for certain iterations of an SQL query without affecting all uses? I attempted using CSS margins, but it didn't have the desired effect. Here is a snippet of the code I am currently working on: <div ...
Why am I unable to style HTML checkboxes with CSS? No matter what I try, the appearance of the checkboxes remains unchanged: Here is the HTML code: <input type="checkbox" id="checkbox-1-1" class="regular-checkbox" /> <nput type="checkbox" id ...