Issues with the CSS property clear:both causing a significant gap

Coding in HTML

 <div id="site-content">
                <div class="site-content">
                    <div id="site-content-left">
                    <h1>NEW COURSE OFFERINGS</h1>
                    <div id="site-content-dproc">
                        <div id="slider">
                            <div class="slide-img">img</div>
                            <div class="slide-text">
                                Consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.Consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
                            </div>
                            <div class="clear"></div>
                            <div class="slide-read-more">
                                <a href="/arm/dprocashinutyun">Read More...</a>
                            </div>
                        </div>
                    </div>
                    </div>
                <div id="site-content-right">
                    <div id="embeddedExample" style="">
                        <div id="embeddedCalendar" style="margin-left: auto; margin-right: auto">
                        </div>
                    </div>
                </div>
                <div id="site-content-ushadrutyun">
                <?php
                while($result_ushadrutyun_main_arm = mysql_fetch_array($query_main_ushadrutyun_arm)){
                    print $result_ushadrutyun_main_arm['short_content'];
                }
                ?>
                </div>
                </div>
                <div class="clear"></div>
                big gap
                </div>
            </div>

Styling with CSS

#site-content{
    background:red;
    margin-left:250px;
}
.site-content {
width:740px;
margin:0 auto;
padding:25px 0 0 0;
}
#site-content-left{float:left;background:orange;}
#site-content-right{margin:5px 0 5px 10px;float:left;background:blue;}
#site-content-left h1{margin:0;font-family:erevan;font-size:25px;color:#0463a7;}
#site-content-dproc {background:url('../images/site-dproc.png');width:490px;height:370px;padding:10px;}
#site-content-dproc:hover{background:url('../images/site-dproc-hover.png');}
#site-content-news{float:left;}
#site-content-social{float:left;}
#site-content-news  .site-news-grey {background:url('../images/site-news-background.png') no-repeat;width:270px;height:182px;float:left;padding:25px;margin:0 10px 10px 0;display: inline-block}
#site-content-social #social-twitter{background:url('../images/social-twitter.png') no-repeat;width:70px;height:70px;margin-bottom:5px;display:block;}
#site-content-social #social-youtube{background:url('../images/social-youtube.png') no-repeat;width:70px;height:69px;margin-bottom:5px;display:block;}
#site-content-social #social-facebook{background:url('../images/social-facebook.png') no-repeat;width:70px;height:72px;margin-bottom:5px;display:block;}
#site-content-social #social-google{background:url('../images/social-google.png') no-repeat;width:70px;height:70px;margin-bottom:5px;display:block;}
#site-content-social #social-dasaran{background:url('../images/social-dasaran.png') no-repeat;width:70px;height:262px;margin-bottom:5px;display:block;}
#site-content-grey-news{width:670px;}
#site-content-ushadrutyun{
    background:url('../images/content-ushadrutyun.png') no-repeat;
    width:198px;
    height:123px;
    padding:10px;
    word-wrap: break-word;
    font-weight:bold;
    text-align: center;
    font-family:erevan;
    overflow:hidden;
    color:#0463a7;
    margin:15px 0 0 0;
}



#site-content-ushadrutyun p {margin:0;}
#aaa {background:url('../images/news-calq.png') no-repeat;width:139px;height:78px;position:relative;top:-50px;}
#site-content-news h1 {margin:15px 0;font-family:erevan;font-size:25px;color:#0463a7;text-align:center;}
#corner-calq a {
    text-decoration:none;
    font-family:erevan;
    color:#0463a7;
}
#corner-calq div {
    -moz-transform: rotate(-30deg); 
    -ms-transform: rotate(-30deg); 
    -webkit-transform: rotate(-30deg);
    -o-transform: rotate(-30deg); 
    transform: rotate(-30deg);
    }
#corner-calq a:hover {text-decoration:underline;}


.slide-img {float:left;margin-right:10px;}
.slide-text {text-align:justify;font-size:15px;}
.slide-text {height:250px;word-wrap:break-word;}
.slide-read-more {float:right;}
.slide-read-more  a{    margin:80px 0 0 30px;-moz-transform: rotate(-30deg); 
    -ms-transform: rotate(-30deg); 
    -webkit-transform: rotate(-35deg);
    -o-transform: rotate(-30deg); 
    transform: rotate(-30deg);}

Is there a solution for the big gap after the content with a size of approximately 300px?

Answer №1

Make sure to include the CSS attribute for the clear class.

.clear {clear:both }

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

Conceal the server's internal file structure to prevent it from being displayed in sources

When I visit my website and inspect the elements in Google Chrome, I am able to see a list of all the folders on my site under the sources tab. This reveals their original names and allows for the downloading of the entire website code. I am concerned abo ...

Switch the toggle to activate or deactivate links

My attempt at coding a switch to disable and enable links using CSS is functional in terms of JavaScript, but the appearance is not changing. I am lacking experience in this area. Here is my HTML Button code: <label class="switch" isValue="0"> ...

Ways to enhance widget titles with borders on Blogger

As a Blogger user, I am looking for guidance on how to add a border around the title of each widget/gadget. When I place widgets such as About Me, Follow Us, etc., in my sidebar, I want them to have borders like in this image. While I know how to customize ...

"An issue was found on line 75, with column 16 reporting an error stating: AttValue expected either a double or single quote

I can't seem to figure out what's wrong with the first line: <a xlink:href=“#dccomics” xlink:title=“DC Comics”> <rect x="1023.509" y="-612.968" fill="none" stroke="#000000" stroke-width="0.5" stroke-miterlimit="10" width ...

What is the best choice for the navigation menu: using `<ul>` or `<div>`?

Is it considered unprofessional to construct a navigation menu without utilizing unordered list tags? For instance, opting for <div> elements instead. <div class="navbar"> <a href="#"> Home </a> </div> ...

Issues with the dropdown menu functionality occurring on a .Net6 MVC app razor page

I recently created a dropdown menu using bootstrap. It functions perfectly when I load an HTML file in VScode. However, I encountered an issue when I tried using the same dropdown markup in a .NET6 MVC app's .cshtml file. When I click on the dropdown ...

Struggling to apply size in percentage to several images used as a background

Displaying two background images with different positioning: html { background: top left no-repeat url(http://wallpapers.pupazzo.org/animals/Peek-a-Boo_Red_Fox_Kit.jpg), top right no-repeat url(http://www.dcwild.com/images/Fox-Kit-Rive ...

The html.dropdown feature is not maintaining the selected value chosen

After successfully filling out my form and submitting data to the database, I encountered a problem with the drop downs on the form not showing the selected value if the model fails validation. Although the HTML clearly shows that the value of the dropdow ...

Reducing the Size of Sprite Images on Websites

I am working on a web page that contains an image file called sprites.png. This file holds multiple images within it. Specifically, there is one image in the file that is 48px x 48px. In my CSS, I am referencing this image like so: .cell-back { height:3 ...

In React, when utilizing the grid system, is there a way to easily align items to the center within a 5 by

I need to center align items within the material-UI grid, with the alignment depending on the number of items. For instance, if there are 5 items, 3 items should be aligned side by side in the center and the remaining 2 items should also be centered. Pleas ...

RMarkdown Question: Is there a straightforward method to insert additional space following each tabset?

When creating reports using R Markdown, I implement tabsets (.{tabset}) to display multiple results without stacking them one after the other. For example: # First session {.tabset} ## A First result ## B Second result # Next session Howev ...

Tips for preventing a React component from scrolling beyond the top of the page

I am looking to achieve a specific behavior with one of my react components when a user scrolls down a page. I want the component to reach the top of the page and stay there without moving any further up. Here is an Imgur link to the 'intranet' ...

How to Arrange Images in Columns Next to Each Other Using Bootstrap 4

Currently using Bootstrap 4, I am facing an issue where I am attempting to align two images side by side on medium or larger viewports within columns, but they keep stacking on top of each other instead. <div class="row"> ...

What are the permissible child elements for an <a> tag?

Lately, I've been focused on structuring HTML code and it got me thinking about which elements are actually allowed as children of an <a> element. Can you help clarify? ...

Find a solution to splitting the area in half, with one side designated for the icon and the other for text

https://i.sstatic.net/Ov3yF.png I'm currently working on a code to assign tasks to employees, and I have created a login form with multiple text fields, each accompanied by an icon. However, there seems to be a layout issue as shown in the image. The ...

Maintain the default material-ui class styles while making customizations to override others

Currently, I am working on customizing the material-ui tooltip and specifically need to adjust the margin for the tooltipPlacementTop class: const useStyles = makeStyles(theme => ({ tooltipPlacementTop: { margin: '4px 0' ...

What is the best way to showcase the following values using Vue.js?

{"status":true,"data":[{"ref_id":"22","agent_id":"68","p_id":"84","description":"i am interested"},{"ref_id":"24","agent_id":"68","p_id":"84","description":"For more information about Bootstrap and Bootstrap Glyphicons, visit our Bootstrap Tutorial.For mor ...

Having an excessive amount of CSS Sprites or none at all can be detrimental to your website's performance

UPDATE: Attempted to adjust the height to 27px as recommended by kennypu, but still facing issues. I am working with a sprite containing multiple icons that I want to extract for navigation purposes. Unfortunately, I'm struggling to properly display ...

Align a button within an input field to be in line with a stacked label in

I'm currently facing some issues with Ionic because it's not placing my button where I want it to be: https://i.stack.imgur.com/qtUQJ.png My goal is to have the button on the same line as the input, similar to the clear-button. This is the cod ...

Tips for troubleshooting ImageArray loading issues in AngularJS

Having some trouble learning Angular and getting stuck with this Image array. Can someone please help me understand what's wrong with my code and how to fix it? FilterAndImages.html <!DOCTYPE html> <html ng-app="store"> <head> < ...