Text tags do not create new lines; words with different tags appear on the same line without any breaks

Here is my HTML code snippet:

<div class="row">
      <div class="col-md-6 col-lg-8 col-12 mb-4 order-lg-1 order-2 text-center  mt-3">
        <div class="rightside w-100 h-100 d-flex justify-content-center align-item-center">
        <h1 class="text-uppercase">তামিম ইকবাল খান</h1>
        <p>MAGI MAGI MAGI</p>;
        </div>
        </div>
      <div class="col-md-6 col-lg-4 col-12 mb-4 order-lg-2 order-1">
        <div class="leftside w-100 h-100 d-flex justify-content-center align-item-center">
          <img  src="images/CV.png" id="my" alt="Trulli" width="100%" height="900px">
        </div>
        </div>
    </div>
    </section>

Here is the CSS I'm using for a special h1 style:

   display: inline-block;
   font-family: "sofia";
   font-size:5vw;
   color:white;
   -webkit-text-stroke-width: 1px;
   -webkit-text-stroke-color: red;
 }

Although I am using Bootstrap 4.0, the p tag is not creating a new line and instead appears on the same line as the h1 element.

Answer №1

To update the styles for your main heading (h1), make the following adjustments:

 display: block;
   font-family: 'sofia';
   font-size: 5vw;
   color: white;
   -webkit-text-stroke-width: 1px;
   -webkit-text-stroke-color: red;
}

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

Programmatically extracting a list of utilized CSS images from IE WebBrowser (IHTMLDocument2)

Exploring the IHTMLStyleSheetsCollection, IHTMLStyleSheet, IHTMLStyleSheetRulesCollection etc. of IHTMLDocument2 to compile a list of all styles in the current document is quite simple. Does anyone have any suggestions on how to generate a list of only th ...

How to give a stylish touch to your :after element with a css

I have a unique bubble design that pops up when hovering. I'm trying to add a border around the bubble, but I'm facing difficulty adding a border to the pointer of the bubble. The arrow is created using the .bubble:after selector. You can check ...

Retrieve an image located outside of a container

I have multiple SVGs inside separate div elements. <div id="divA"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect x="10" y="10" height="130" width="500" style="fill: #000000"/> ...

Guide to achieving a powerful click similar to a mouse

I've been struggling to get an audio file to play automatically for the past three days, but so far I haven't had any luck. The solutions I've tried didn't work in my browser, even though they worked on CodePen. Can anyone help me make ...

I'm encountering an unexpected error as I attempt to incorporate a bootstrap template into my Angular application. What could be causing this issue

I am not very experienced with front-end development, so for my current project, I have decided to utilize a pre-made Bootstrap template. I am in the process of integrating it into my project, relying more on my intuition rather than technical expertise du ...

PHP pagination restricts the amount of data shown on a page without carrying over to the next page

Welcome to my PHP website! It's designed to showcase data from a database with a simple search feature on the homepage. When a user searches for a keyword, they are directed to a page displaying the relevant data. Below is the code I've implement ...

The hyperlink in the HTML code is malfunctioning

While working on a Wix website, I encountered an issue with the code snippet below: // JavaScript var countries = [ { name: 'Thailand', link: 'www.google.com' }, { name: 'Tanzania', link: '' }, { name: &ap ...

Interactive tooltips within a list of elements in a leaflet map

I am trying to implement a feature where a popup is displayed on mouse hover, showing names that are selected from an array list. I have placed multiple markers on a map at different latlon positions and now I want to display a popup containing the name ...

What is the best way to add character limits to an HTML form?

Hello there, I am currently working on creating an HTML form to generate a PDF file. However, I am facing difficulties in figuring out how to create the character placeholders for text input fields (as shown in the screenshot of a sample PDF file below). ...

Looking to extract specific information from a webpage using VBA

I'm trying to extract the text 'Catalog Manager/ Sales' & 'EOL (product/component)' from the view source tab using VBA. Here is an excerpt of the view source code: <tr> <td nowrap="true" valign="top" width="165px" cl ...

Unable to send hyperlinks via email following header configuration

Having trouble sending links via email. Using the wp_mail() function for email delivery. Adding the header $headers .= "Content-Type: text/html; \r\n"; seems to be stripping out the href attribute in the received emails. Experimented with bo ...

What is the best way to incorporate a description box for each city on the svg map that appears when you hover your mouse over it?

I am looking to display detailed descriptions for each city in the same consistent location on my map. With multiple pieces of information to include for each city, I want to ensure that the description box is positioned at the bottom of the map. Can any ...

Is it feasible to adjust the positioning of invalid tooltips?

I've been trying to figure out how to adjust the position of my invalid tooltips to move a bit to the right and match my input position, but I haven't had any success yet. Here's the image I'm referring to: https://i.sstatic.net/fovSS. ...

Positioning a list item on the left side within Chrome by using the

It seems that Chrome is displaying the content incorrectly when I use float: left in a block inside an li element. Check out this JSFiddle link <body> <ol> <li> <div class="input"></div> <div class="te ...

What is the best method for automatically closing the modal window?

I implemented a modal window on my website. Within the modal, there is a green button labeled "Visit" which triggers the "Bootstrap Tour". I aim for the modal to automatically close when the tour starts. To access this feature on my site, users need to ...

Issue encountered while generating dynamic bootstrap toggle button

Looking to make my Bootstrap toggle buttons dynamic instead of static by loading them at runtime. Here is the HTML code I've been using: <a> Test-Title <input checked data-onstyle="success" data-toggle="toggle" id= ...

Leveraging Spotify's webAPI to listen to a randomly selected album by a specific artist (ID

Welcome to my little project! As I am not a developer myself, please bear with me for any silly questions that may arise. My idea is to create an "audio book machine." The concept involves using a website that showcases various artists of audiobooks. Upo ...

I am facing an issue where PayPal buttons are overlapping other elements on my website. Unfortunately, I am unable to control the

Having integrated PayPal buttons on my Magento website, I am facing an issue where the buttons have their CSS classes inline. This causes them to overlap other elements on the page when scrolling. For instance, as I scroll down, the PayPal button overlaps ...

Tips for attaching the Bootstrap 5 dropdown menu to a particular element, especially when the dropdown element is contained within another element that has an overflow property set to hidden

I am utilizing the Bootstrap 5 dropdown menu within an owl-carousel. However, the dropdown is getting clipped because the outer div has an 'overflow:hidden' style in the owl-carousel. https://i.sstatic.net/YD9l2.jpg For the complete code snippe ...

ceasing the execution of a setTimeout function

Check out this simple image slideshow I created. Here's the link to view it on jsfiddle. Everything seems to work fine when you click start, but when you click stop, the function keeps running. Take a look at the jQuery code below: $(document).ready ...