Jump to content

Recommended Posts

Hi im having some trouble with a website im making. Inside the main content area i want 3 columns, two for text and one for a javascript based slideshow i made. The slideshow is complete, but the other two columns are having trouble at the moment. They end up below the main content area, not inside it. Ive looked over the code, making sure that they are all the right size and located where they are supposed to be, but cant find any problems with it. I hope you guys can help.

 

The HTML code that specifies the main content area:

<div id="Innehall">
            <h2> Här under ligger bildspelet där alla bilder jag har lagt upp finns.</h2>
            <div id="Vansterkolumn">
            </div>
            <div id="Bildspelet">
            <div id="topbar">
            </div>
            <div id="Bild">
            <img src="Bildspels Bilder/Stolen New.jpg" name="Bilden" border="0" width="375" height="325"/>
            </div>
            <div id="bottenbar">
            <div id="buttonpositioning">
            </div>
            <div id="buttons">
            <a id="Bback" onmousedown="bildprev()"><img src="Bildspel Previous.png" /></a>
            <a id="Breset" onmousedown="bildreset()"><img src="Bildspel Reset.png" /></a>
            <a id="Bnext" onmousedown="bildnext()"><img src="Bildspel Next.png" /></a>
            </div>
            </div>
            </div>
            <div id="Hogerkolumn">
            <h4>Länk</h4>
            <br />
            <p>Här under så finns det en länk till min Skydrive, där man kan se alla mina arbeten i rätt storlek.</p>
            <br />
            <a href="https://skydrive.live.com/?lc=1053#cid=066974471AB2B7A4&id=66974471AB2B7A4!128">Min Skydrive.</a>
            </div>
            </div>

 

The CSS code that specifies the main content area:

div#Innehall
{
    width: 830px;
    height: 500px;
    margin: auto;
    text-align: left;
    background-image: url('Innehall Bakgrunds Textur.png');
    background-repeat: no-repeat;
    border: 1px solid black;
}
div#Innehall h2
{
    text-align: center;
}
div#Innehall h4
{
    text-align: center;
}
div#Bildspelet
{
    width: 400px;
    height: 400px;
    margin: auto;
    background-image: url('Bildspels Bakgrund.png');
    background-repeat: no-repeat;
}
div#topbar
{
    width: 400px;
    height: 25px;
    margin: auto;
}
div#Bild
{
    width: 375px;
    height: 325px;
    margin: auto;
}
div#bottenbar
{
    width: 400px;
    height: 50px;
    margin: auto;
}
div#buttonpositioning
{
    width: 400px;
    height: 15px;
    margin: auto;
}
div#buttons
{
    width: 135px;
    height: 20px;
    margin: auto;
}
div#buttons a:hover
{
    cursor: pointer;
}
#Bback
{
    width: 45px;
    height: 20px;
    display: block;
    float: left;
}
#Breset
{
    width: 45px;
    height: 20px;
    display: block;
    float: left;
}
#Bnext
{
    width: 45px;
    height: 20px;
    display: block;
    float: left;
}
div#Vansterkolumn
{
    height: 400px;
    width: 200px;
    float: left;
    text-align: left;
    margin: auto;
}
div#Hogerkolumn
{
    height: 400px;
    width: 200px;
    float: right;
    text-align: left;
    margin: auto;
}

 

Let me know if you need the rest of the code.

 

Entiranz.

Link to comment
https://forums.phpfreaks.com/topic/261527-3-columns-inside-a-div-tag/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.