Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How come my picture will show up at the content div?

Featured Replies

I have this css as follows:

root {
    display: block;
}

*
{margin:0;
 padding:0;}

body {  
    font-size: 62.4%;
    font-family: "verdana", "Lucida Sans Unicode", "Lucida Sans", Helvetica, Arial, sans-serif;
    color:#000;
    background-color: #FAFAFA;
}
 
#container{
    width:100%;
    margin:0 0 10px 0;  
    padding:0;}

* html #container{

    height:1%;}

#content{
    float: left;
    width: 730px;
    margin:0 10px 0 15px;
    border-right: 1px solid #98FB98;
}
/*padding:0 10px 20px 0;}*/

#content h1{
    margin:10px 5px 10px 5px;
    display: block;
    margin-left: 130px;
    color:#790301;
    font-size:28px;
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Helvetica, Arial, sans-serif;
    font-weight:normal;}

#content h2{
    margin:5px 5px 5px 5px;
    padding:0;
    margin-left: 80px;
    color: black;
    font-size:22px;
    font-family: "Trebuchet MS", arial, sans-serif;
    font-weight:normal;}

#content h5{
    margin-left: 80px;
}

#content p{

    margin: 0px 50px 0px 150px;
    padding: 0px 5px 0px;
    line-height: 2em;
    color: #5C5C5C;  
    display: block;   
    font-size:13px;
    font-family:"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Helvetica, Arial, sans-serif;}

#content .img-float-left{
    float:left;
    margin:5px 15px 5px 0px;
    padding-right:10px;
    border:1px solid #444;
    width:150px;
    height:150px;}

#content .img-float-right{
    float:right;
    margin:5px 0px 5px 15px;
    padding-right:10px;
    border:1px solid #444;
    width:150px;
    height:150px;}

.space {
    line-height: 0.1em;
}

Now, I'm trying to insert a image just at the beginning of the content but it just won't show up.

 

Can someone enlighten me why?

<div id="container">

    <div id="content">
        <p><img src="image/Singapore1.JPG"/></p>
        <h2>
            About Us
        </h2>
      - this

        <p> jfdsalkfjafjadjf</p>

The size of the image is already resized to fit into the content div of the left column but am puzzled why it won't show up. :(

 

Before that I was putting a slider image but wasn't working either so now trying something simpler.

 

The size of the image is 297px x 167px.

Edited by andy9l
Please use [code] tags.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.