Organize the placement of <img> tags inside a footer <div>

Struggling to adjust the placement of social icon images in the footer. When I increase the height from 40px to 60px, the full image is visible, but I can't seem to reposition it within the section without altering the section size.

Below is the code causing my confusion. Any assistance would be greatly appreciated. CSS:

.footer {
position:fixed;
/*Opacity start*/
 -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
 filter: alpha(opacity=80);
-moz-opacity: 0.80;
-khtml-opacity: 0.8;
opacity: 0.8;
/*Opacity end*/ 
left:0px;
bottom:0px;
height:40px;
width:100%;
background:#333333;
}

 div.socialIcons ul li 
{
display: inline-block;
vertical-align:top;
padding-right: 10px;
padding-bottom: 5px;
float: right;
}

div.footer a
    {
    color:#441111;
    text-decoration:none;
    }
div.footer ul
    {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    list-style-type: none;
    }
div.footer p 
{
text-align: center;
font-size: 75%;
padding-left: 10em;
padding-top: .5em;
color: #ECECEC;

}

HTML:

<div class="footer">


<!--   *****   Social media icons   *****   -->
<div class="socialIcons">

    <ul id="profile">
        <li><a href="http://www.twitter.com/" title="Twitter"><img src="./design/twitter.jpg" alt="My Twitter" /></a></li>
        <li><a href="http://www.pinterest.com/" title="Pinterest"><img src="./design/pinterest.jpg" alt="My Pinterest" /></a></li>
        <li><a href="http://www.linkedin.com/" title="LinkedIn"><img src="./design/linkedin.jpg" alt="Me on LinkedIn" /></a></li>
    </ul>
</div>
<p><i>&copy;2013</i></p?>

Answer №1

To adjust the position of a block without impacting surrounding blocks, you can utilize the CSS property "position: relative" along with top, left, right, and bottom values.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

AngularJS dropdown not reflecting changes when using ng-selected

While working with AngularJS, I have encountered an issue where the first child of the select element remains empty despite my efforts to populate it. Below is the HTML code snippet: <select id="connectTV" aria-label="How many Dish TVs" ng-model="conn ...

I have attempted to utilize Bootstrap by downloading it locally, but unfortunately, it is not functioning as

I'm facing an issue with Bootstrap while running it locally - it's not working. However, when I use the CDN link, it works perfectly fine. Can someone assist me in resolving this problem? <!DOCTYPE html> <html lang="en"> < ...

Discover the secret to permanently adding a video icon to your images

I am struggling to permanently place a video icon on an image without having both elements appear separately. Essentially, I want to overlay a video icon onto an image seamlessly without the need for external tools like Photoshop. More Clearly: I have ...

How can we achieve the same functionality as React Native's { flex: 1 } in React JS?

I've been diving into React Native development, and now I'm exploring React.js for web applications. However, I'm facing a challenge in creating a simple View that takes up the entire screen to begin experimenting with different components. ...

Tips for integrating a fully revamped design for social network share buttons

Is it possible to customize social network like buttons similar to the ones shown in the attached image? ...

What is the best way to utilize HTTP headers in caching dynamic CSS?

Although this question is similar to this one on Stack Overflow, the provided solution does not seem to be effective. I am currently working on a WordPress plugin where I need to generate a dynamic CSS file. Below is the code snippet I am using: public s ...

What is the best way to incorporate width adjustments in an image source for a responsive website?

Currently learning CSS and experimenting with it on an HTML page. For reference, I'm using this link. Encountering an issue with a responsive header image that adjusts size based on device (small on mobile, large on desktop). Is it possible to achiev ...

I'm curious to know how preg_match functions when working with HTML utilizing simple_html_dom.php

Here is an example of some HTML code I have: <div class="address adr"> <span class="street-address"><span class="no_ds> CONTENT1</span> <span class="postal-code">CONTENT2</span> <span class="local ...

Guide on moving a single item from one div to another

Here is a div that I need to modify: <div class="npwfu-inspiration"> <div class="npwfu-inspiration-inner"> <h1>Looking for inspiration?</h1> <p>Pick a category to see examples of what you can create with ...

Is there a way to change the domain for all relative URLs on an HTML page to a different one that is not its current domain, including in HTML elements and JavaScript HTTP Requests?

I am dealing with a situation where my page contains "domain relative URLs" like ../file/foo or /file/foo within a href attributes, img src attributes, video, audio, web components, js ajax calls, etc. The issue arises when these URLs need to be relative ...

Is it possible for ColdFusion to transmit HTML5 Server-Sent Events using utf-8 encoding?

When using <cfcontent type="text/event-stream"> in ColdFusion, I encountered an issue where non-English characters were displayed as question marks: ???????123123???? ???. Interestingly, the rest of the page was able to display non-English characters ...

What measures can be taken to safeguard my web app from unauthorized devices attempting to connect?

I am looking for a way to restrict access to a webapp so that only authorized users can connect from approved computers or mobile devices. If a user enters the correct username and password, access will be granted only if they are using a device approved b ...

I am having trouble accessing the div. What could be causing this issue?

Here is the code I have written: - <html> <head> <title>Pranav Sharma</title> <style> @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700); body { background: #ecf0f1; font-fami ...

Is the :root selector truly devoid of value?

While I understand that :root can be used to select the html tag in an HTML file and the svg tag in an SVG file, I personally find it strange and not practical to apply the same styles to both HTML and SVG using :root. It seems like an unrealistic scenario ...

Getting filenames from a directory using PHP

I'm attempting to retrieve the folder name from my computer using PHP code. After researching on Stack Overflow, I came across the following information: <input type="file" name="folder" webkitdirectory directory multiple/> Directory Chooser i ...

I am having trouble placing the button within the image

Essentially, my goal is to place the button within the image and ensure it remains in its position when transitioning to mobile mode or adjusting window size. This is the desired outcome: https://example.com/image https://example.com/button-image .img ...

Revamping various classes by applying a range of unpredictable background hues

I currently have a website located at . However, I am looking to change the background colors of the cards (when flipped) to random colors. My current approach is shown below: <script> function get_random_color() { var letters = '0123456789AB ...

Draggable slider not functioning properly with linear interpolation

Recently, I've been delving into the world of "linear interpolation" and its application in creating easing effects. However, while the easing functionality of the draggable slider seems to be operational, I'm encountering an issue. The slider re ...

What's the best way to horizontally center an inline element within a block element using CSS?

I need help centering an inline element (like a span) within a fixed-width block element. The goal is to have the position of the inline element determine how the text is laid out in the block element. Here's an example: .container { ...

Ant Design: How can a SubMenu be turned into a clickable link?

Currently, I am developing a Next.js application and utilizing antd's Menu and Submenu components for my NavBar. My goal is to make the SubMenu items clickable links. How can I achieve this functionality? <Menu className={styles.menuContainer} mode ...