Creating a Responsive Bootstrap Webpage

I attempted to replicate a sign-in page using Bootstrap from this link:

Prior to this, I had already created a page without using Bootstrap code.

 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Mainpage.aspx.cs" Inherits="project.Mainpage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>System</title>

    <link href="Styles/login.css" rel="stylesheet" />
    <link href="Styles/main.css" rel="stylesheet" />

    <link href="Content/bootstrap.css" rel="stylesheet" />

    <!-- Google Web fonts -->
    <link href='http://fonts.googleapis.com/css?family=Raleway:400,500,600,700,800' rel='stylesheet' type='text/css'/>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700italic,400,800,700,600' rel='stylesheet' type='text/css'/>
</head>
<body style="background-image:url(images/slide07.jpg);background-repeat:no-repeat">

        <img class="logo" alt="LOGO" src="images/logomain.png" />
    <br /><br />
    <form id="form1" runat="server" class="fordiv">
         <div id="box">

              <span>
                     <img src="images/none.png"  id="avtar" />

                </span> 

            <div style="margin-left: 190px;margin-top: -170px";> 

                <span>
                <asp:TextBox CssClass="textbx" ID="txt_us" runat="server" placeholder="Enter UserName"></asp:TextBox><br /><br />

                </span>
               <span>
                 <asp:TextBox  CssClass="textbx"  ID="txt_pwd" runat="server" placeholder="Enter Password" TextMode="Password"></asp:TextBox><br /><br />

               </span>
                <span>
                  <asp:Button ID="Button1" CssClass="button" runat="server" Text="LOGIN" OnClick="Button1_Click" />
                </span>
            </div>
        </div><br /><br />
       <asp:Label ID="Label1" CssClass="info" visible="false"     runat ="server" Text="" BorderColor="Black"></asp:Label>
    </form>
     <table  class="table" style="border: medium groove #FFFFFF; width: 100%; margin-top: 200px; ">
        <tr>
            <td>
                <img style="margin-left: 10px;"  src="images/passd.jpg" />
            </td>

            <td>
                <img src="images/1.jpg" />
            </td>
            <td>

                <img src="images/2.jpg" />
            </td>
            <td>

                <img src="images/3.jpg" />
            </td>
            <td>
                <img src="images/4.jpg" />
            </td>
        </tr>

    </table>

        <br /><br /><br />  
</body>
</html>

Now, I am attempting to create a responsive design using Bootstrap by trying the following:

 <div class="container">
         <img class="logo" alt="LOGO" src="images/logomain.png" /><br /><br />
        <form class="form-signin" runat="server" >
        <h2 class="form-signin-heading">Please sign in</h2><br /><br />
        <label for="inputEmail" class="sr-only">Email address</label>
        <asp:TextBox CssClass="textbx" ID="txt_us" runat="server" placeholder="Enter UserName"></asp:TextBox><br /><br />
        <label for="inputPassword" class="sr-only">Password</label>
          <asp:TextBox  CssClass="textbx"  ID="txt_pwd" runat="server" placeholder="Enter Password" TextMode="Password"></asp:TextBox>
       <br /><br />
         <asp:Button ID="Button1" CssClass="button" runat="server" Text="LOGIN" OnClick="Button1_Click" />   
        <asp:Label ID="Label1" CssClass="info" visible="false"     runat ="server" Text="" BorderColor="Black"></asp:Label>
      </form>

    </div>

However, the display looks awkward. Any solutions?

Answer №1

When it comes to creating a responsive design, leveraging Bootstrap's grid system is crucial. I recommend delving deeper into the world of responsive design by visiting this resource, as well as exploring Bootstrap's grid system further via this link.

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

XSLT: Tips for preventing the use of self-closing tags within HTML attributes

I am new to XSLT and I'm currently troubleshooting an issue with some XSLT code (version 2.0) that was written a few years ago. Here is a snippet of the XSLT code: <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ...

Utilize a specific component to enclose particular words within a contenteditable div in an Angular project

I have a task at hand where I need to manipulate text input from a contenteditable division, use regex to identify specific words, and then wrap those words within an angular component. Although I have managed to successfully replace the text with the com ...

What is the method for connecting a page with a submit button?

<button class="w-100 btn btn-lg btn-primary" type="submit">Sign in</button> I have a code snippet from bootstrap that creates a button. How can I modify this code to add a link to another HTML file while maintaining data val ...

Is there a way to target a button within an anchor tag without relying on a specific id attribute?

On my webpage, I have buttons that are generated dynamically using PHP from a MySQL table. Each button is wrapped in an anchor tag and when clicked, it triggers a Javascript function to carry out multiple tasks. One of these tasks requires extracting the ...

Is concealing content using Javascript or jQuery worth exploring?

While I have been hiding content using display:none; in css, there are concerns that Google may not like this approach. However, due to the needs of jQuery animations, it has been necessary for me. Recently, I have come across a new method for hiding conte ...

In search of a regular expression for identifying any of several classes

In the process of upgrading all my websites, I decided to redesign them so that all URL's default to lower case. This meant changing all image names and paths to lower case as well, which was accomplished using regexes. However, this action inadverten ...

ever-evolving background-image with dynamic CSS styling

Being new to both PHP and Javascript, please excuse any mistakes in my explanation. I have information stored in a PHP array that I bring to my index page using the function below (located in a separate file called articles.php that is included in my index ...

Passing index value using navigateByUrl method

I have developed a home component and a view component to display different levels of employee details. The home component presents basic information, while the view component shows comprehensive details. The code in my home.component.html file looks like ...

Exploring ways to retrieve checkbox values instead of boolean values upon submission in Angular

I am currently working with a template-driven form and facing an issue. Despite receiving true or false values, I actually need to retrieve the value of checkboxes. <form #f = "ngForm" (ngSubmit) = "onClickSubmit(f.value)"> ...

JavaScript fails to function in an HTML file

I am facing an issue where my JavaScript code works perfectly in JSFiddle, but when I copy it into an HTML file, it doesn't function as expected. Despite searching through other related posts, I have been unable to find a solution for this specific pr ...

Change the order of the div to be placed before the previous element

In this scenario, the third div is positioned to the right of the second div rather than the first div. There is space available to the right of the first div, but it is constrained from appearing above the second div. How can I adjust the placement of th ...

Updating the input value of one field by typing into another field is not functioning properly when trying to do so for

I'm managing a website with a form that has three fields which can be duplicated on click. Here is an excerpt of my code: $(document).ready(function() { var max_fields = 10; var wrapper = $(".container1"); var add_button = $("#niy"); var ...

"Stylish footer design in CSS featuring a sleek overflow scrollbar

Perhaps the most straightforward way to demonstrate this is by providing a direct link to the website where the addition should be made. I am in desperate need of a basic footer that remains fixed at the bottom of the page, regardless of the amount of con ...

The webpage hosted on Heroku displays a blank background, requiring users to refresh the page with an F5 key

I developed a group chat program using Python microframework flask, vanilla JavaScript, and Flask-SocketIO. The program is deployed on heroku and can be accessed here: . After deployment, I encountered the following issue: While the program worked fine o ...

Ways to navigate a div within an iframe that has been loaded

As I load a page(A) inside an iframe, the HTML structure of the embedded content is as follows: <html><body> <div id="div1"></div> <div id="div2"><button>Hello</button></div> </body></html> The ...

show a different text when hovering over a table cell

I am working with a table where one column displays the employee ID, and I would like to show their names when hovering over it. Can someone assist me with this task? ...

Vue Quasar Drawer Layout with Bottom Bar

Struggling to implement a footer in my q-drawer. Below is the template and component code I am currently using: <template> <q-layout view="hHh lpR fFf"> <q-header elevated> <q-toolbar> <q-btn flat de ...

Tips for setting the tabindex on an element that has an opacity of 0

I have created a drag and drop image upload field with a hidden input element to style the upload button according to the design. However, I am concerned about accessibility and want the upload functionality to trigger when the user presses 'Enter&apo ...

Refresh the block's content seamlessly without the need for a page reload

Within the index.html page There exists a block called content that contains various content blocks. An additional navigation menu with numerous links is present. It is important that when you click on a menu link, the content within the content block re ...

Tips for layering one div on top of another div

I'm looking for guidance on how to position my button divs over my Trapezoids in an overlay fashion. Currently, I have set up an array to store the colors and utilizing the map function to match each button with its corresponding color type. When a ...