Results 1 to 12 of 12

Thread: CSS and DIV problems.

  1. #1
    Uber Pantsless
    Join Date
    Jul 2008
    Location
    Wolverhampton, UK
    Posts
    505
    Thanks
    51
    Thanked
    17 times in 15 posts
    • richieuk's system
      • Motherboard:
      • Asus P5Q Pro
      • CPU:
      • Intel Q6600 Core 2 Quad (2.4Ghz)
      • Memory:
      • 4GB Corsair XMS2 DDR2
      • Storage:
      • 640GB Western Digital Sata2
      • Graphics card(s):
      • Sapphire HD4850 Dual Slot Cooler
      • PSU:
      • Corsair HX520w
      • Case:
      • Antec 300
      • Operating System:
      • Windows Vista 64bit Premium
      • Monitor(s):
      • 22" Neovo LCD + 32" HDTV
      • Internet:
      • 24Mb Virgin Broadband

    CSS and DIV problems.

    Hi guys, I'm having ALOT of problems making a website for Uni, its to demonstrate PHP but I haven't been able to even get to implementation as my design is giving me hell...

    I can't seem to get my DIV layout to work in IE6/7 and FF.

    I'm trying to get the following layout, can anyone help me?



    Cheers
    -- MY 2008 RIG --
    CASE: Antec 300/ MOBO: ASUS P5Q Pro/ CPU: Q6600/ RAM: Corsair 4GB XMS2/
    COOLING: Xigmatek Heatsink 120mm, 2x Xigmatek 120mm w/ Fan controller/
    GFX: Sapphire HD4850/ PSU: Corsair HX520/ HD: WD 640GB w/ VibeFixer
    DISPLAY1: 22" Neovo 3ms/ DISPLAY2: 32" HDTV/


    -- MY 2011 RIG --
    CASE: BitFenix Survivor/ MOBO: ASUS P8Z68V Pro/ CPU: i7 2600K @ 4.4Ghz/ RAM: Corsair 16GB Vengenge DDR3 1600MHz/
    COOLING: Antek Kuhler H20 with Push-Pull Fans EXPANSION: Black Magic Intensity HDMI 1080p Capture Card
    GFX: Sapphire HD6950 *unlocked to 6970*/ PSU: XFX 650w Modular/ HD: 60GB OCZ Agility 3 Sandforce SSD w/ 1TB Sata 3 Storage & 640GB Sata2 Backup
    DISPLAY1: 23" 3D 1080p 120Hz LG / DISPLAY2: 22" 1080p LG/



    Check out my Youtube Page for Funny Video series I make (17,000 Subscribers)

  2. #2
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: CSS and DIV problems.

    Which sections do you actually want content on? Are the side bars just for spacing?

  3. #3
    Uber Pantsless
    Join Date
    Jul 2008
    Location
    Wolverhampton, UK
    Posts
    505
    Thanks
    51
    Thanked
    17 times in 15 posts
    • richieuk's system
      • Motherboard:
      • Asus P5Q Pro
      • CPU:
      • Intel Q6600 Core 2 Quad (2.4Ghz)
      • Memory:
      • 4GB Corsair XMS2 DDR2
      • Storage:
      • 640GB Western Digital Sata2
      • Graphics card(s):
      • Sapphire HD4850 Dual Slot Cooler
      • PSU:
      • Corsair HX520w
      • Case:
      • Antec 300
      • Operating System:
      • Windows Vista 64bit Premium
      • Monitor(s):
      • 22" Neovo LCD + 32" HDTV
      • Internet:
      • 24Mb Virgin Broadband

    Re: CSS and DIV problems.

    All of it will eventually have content on I'll be working on it tongiht trying to fix
    -- MY 2008 RIG --
    CASE: Antec 300/ MOBO: ASUS P5Q Pro/ CPU: Q6600/ RAM: Corsair 4GB XMS2/
    COOLING: Xigmatek Heatsink 120mm, 2x Xigmatek 120mm w/ Fan controller/
    GFX: Sapphire HD4850/ PSU: Corsair HX520/ HD: WD 640GB w/ VibeFixer
    DISPLAY1: 22" Neovo 3ms/ DISPLAY2: 32" HDTV/


    -- MY 2011 RIG --
    CASE: BitFenix Survivor/ MOBO: ASUS P8Z68V Pro/ CPU: i7 2600K @ 4.4Ghz/ RAM: Corsair 16GB Vengenge DDR3 1600MHz/
    COOLING: Antek Kuhler H20 with Push-Pull Fans EXPANSION: Black Magic Intensity HDMI 1080p Capture Card
    GFX: Sapphire HD6950 *unlocked to 6970*/ PSU: XFX 650w Modular/ HD: 60GB OCZ Agility 3 Sandforce SSD w/ 1TB Sata 3 Storage & 640GB Sata2 Backup
    DISPLAY1: 23" 3D 1080p 120Hz LG / DISPLAY2: 22" 1080p LG/



    Check out my Youtube Page for Funny Video series I make (17,000 Subscribers)

  4. #4
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: CSS and DIV problems.

    Showing us what you have now would be a start.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  5. #5
    Uber Pantsless
    Join Date
    Jul 2008
    Location
    Wolverhampton, UK
    Posts
    505
    Thanks
    51
    Thanked
    17 times in 15 posts
    • richieuk's system
      • Motherboard:
      • Asus P5Q Pro
      • CPU:
      • Intel Q6600 Core 2 Quad (2.4Ghz)
      • Memory:
      • 4GB Corsair XMS2 DDR2
      • Storage:
      • 640GB Western Digital Sata2
      • Graphics card(s):
      • Sapphire HD4850 Dual Slot Cooler
      • PSU:
      • Corsair HX520w
      • Case:
      • Antec 300
      • Operating System:
      • Windows Vista 64bit Premium
      • Monitor(s):
      • 22" Neovo LCD + 32" HDTV
      • Internet:
      • 24Mb Virgin Broadband

    Re: CSS and DIV problems.

    Okies, code and printscreens?
    -- MY 2008 RIG --
    CASE: Antec 300/ MOBO: ASUS P5Q Pro/ CPU: Q6600/ RAM: Corsair 4GB XMS2/
    COOLING: Xigmatek Heatsink 120mm, 2x Xigmatek 120mm w/ Fan controller/
    GFX: Sapphire HD4850/ PSU: Corsair HX520/ HD: WD 640GB w/ VibeFixer
    DISPLAY1: 22" Neovo 3ms/ DISPLAY2: 32" HDTV/


    -- MY 2011 RIG --
    CASE: BitFenix Survivor/ MOBO: ASUS P8Z68V Pro/ CPU: i7 2600K @ 4.4Ghz/ RAM: Corsair 16GB Vengenge DDR3 1600MHz/
    COOLING: Antek Kuhler H20 with Push-Pull Fans EXPANSION: Black Magic Intensity HDMI 1080p Capture Card
    GFX: Sapphire HD6950 *unlocked to 6970*/ PSU: XFX 650w Modular/ HD: 60GB OCZ Agility 3 Sandforce SSD w/ 1TB Sata 3 Storage & 640GB Sata2 Backup
    DISPLAY1: 23" 3D 1080p 120Hz LG / DISPLAY2: 22" 1080p LG/



    Check out my Youtube Page for Funny Video series I make (17,000 Subscribers)

  6. #6
    Senior Member
    Join Date
    Nov 2008
    Location
    Ipswich
    Posts
    236
    Thanks
    7
    Thanked
    10 times in 7 posts
    • Aden's system
      • Motherboard:
      • Biostar TP45 HP
      • CPU:
      • Q6600 @ stock
      • Memory:
      • 2 x 2gb Corsair XMS2 800mhz
      • Storage:
      • 2 x 500gb 7200.11
      • Graphics card(s):
      • 8600GTS @ Stock
      • PSU:
      • be-quiet 550watt
      • Case:
      • Antec 900
      • Operating System:
      • XP Media Center & Seven x64 7232
      • Monitor(s):
      • 24" acer @ 1920 x 1200 & 15" 1024 x 768
      • Internet:
      • Supanet supposed 8mb - 1.3mb

    Re: CSS and DIV problems.

    I'm assuming this is going to be a fluid width design. First thing i'd do is create a container for all the div's to go inside of. Then create 3 more div's two floating left, one floating right so they are side by side.
    Inside the Center block you'd then create a div for the login box and banner, one floating to the left, one floating to the right, and then below that the div of the menu.

    Heres what I meen
    <div> //this is your container
    <div> //your left sidebar
    </div>

    <div> //your center block for containing mainpage, menu and login etc
    <div>Login Box</div> //float to the left
    <div>Banner</div> //float to the right

    <div>Menu</div> //Below the Login Box and Banner

    <div>Main Page</div> //your main page
    </div>

    <div> //your right sidebar
    </div>
    </div>

    Though I can't be any more indepth than that, until you give us some source code, or a design or something.

  7. #7
    Senior Member
    Join Date
    May 2008
    Location
    Bath Uni
    Posts
    1,140
    Thanks
    169
    Thanked
    71 times in 66 posts
    • Will404's system
      • Motherboard:
      • ASUS P5Q PRO
      • CPU:
      • Core2quad Q6600 @2.85GHz
      • Memory:
      • 4GB Corsoar Twin X XMS2 DDR2-PC2 6400 @ 900MHz, 5-5-5-18
      • Storage:
      • WD 320GB, Segate 320GB (Raid 0), 2* WD 1TB storage
      • Graphics card(s):
      • ATI Sapphire HD 4850
      • PSU:
      • Corsoar HX 520
      • Case:
      • Antec 900
      • Operating System:
      • Windows 7 Pro x64
      • Monitor(s):
      • ASUS MW221u 22"

    Re: CSS and DIV problems.

    This is what I would do using my "super" A-lvl knowledge - tables. The EASY way;
    <head>
    <title>RICHIEUK</title>
    </head>

    <body>
    <table width="1000" height="934" border="0">
    <tr>
    <td width="200" rowspan="3">Sidebar</td>
    <td width="300" height="285">Login Box </td>
    <td width="300">Banner</td>
    <td width="200" rowspan="3">Sidebar</td>
    </tr>
    <tr>
    <td height="200" colspan="2">Menue</td>
    </tr>
    <tr>
    <td width="600" height="600" colspan="2">Content</td>
    </tr>
    </table>
    </body>
    </html>


    (sorry if it is not up to your standard)

  8. #8
    Senior Member
    Join Date
    Nov 2008
    Location
    Ipswich
    Posts
    236
    Thanks
    7
    Thanked
    10 times in 7 posts
    • Aden's system
      • Motherboard:
      • Biostar TP45 HP
      • CPU:
      • Q6600 @ stock
      • Memory:
      • 2 x 2gb Corsair XMS2 800mhz
      • Storage:
      • 2 x 500gb 7200.11
      • Graphics card(s):
      • 8600GTS @ Stock
      • PSU:
      • be-quiet 550watt
      • Case:
      • Antec 900
      • Operating System:
      • XP Media Center & Seven x64 7232
      • Monitor(s):
      • 24" acer @ 1920 x 1200 & 15" 1024 x 768
      • Internet:
      • Supanet supposed 8mb - 1.3mb

    Re: CSS and DIV problems.

    Quote Originally Posted by Will:) View Post
    This is what I would do using my "super" A-lvl knowledge - tables. The EASY way;
    <head>
    <title>RICHIEUK</title>
    </head>

    <body>
    <table width="1000" height="934" border="0">
    <tr>
    <td width="200" rowspan="3">Sidebar</td>
    <td width="300" height="285">Login Box </td>
    <td width="300">Banner</td>
    <td width="200" rowspan="3">Sidebar</td>
    </tr>
    <tr>
    <td height="200" colspan="2">Menue</td>
    </tr>
    <tr>
    <td width="600" height="600" colspan="2">Content</td>
    </tr>
    </table>
    </body>
    </html>


    (sorry if it is not up to your standard)
    Even though thats the easiest way and probably the best for someone who only supplies an image and no real source (dw i'm only joking ), I think he wants to do it in Div's because its the more "modern" / "web2.0" approach.

    Though if your having trouble with css and divs, i really recommend taking the easy option with tables, you'll save yourself lots of time

  9. #9
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Re: CSS and DIV problems.

    If the assignment is a demonstration of PHP, I'm not sure spending an undue amount of time on design/styling is in your best interests.
    To err is human. To really foul things up ... you need a computer.

  10. #10
    Registered+
    Join Date
    Sep 2008
    Posts
    25
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: CSS and DIV problems.

    Are you going for fixed or floating? Is this of any use?

    <html>
    <head>
    <title>DIV Practice</title>
    <style type="text/css">
    <!--
    #leftbar {
    background: #0f0;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 50px;
    height: 500px;
    }
    #login {
    background: #f00;
    position: absolute;
    top: 0px;
    left: 50px;
    width: 100px;
    height: 100px;
    }
    #banner {
    background: #ff0;
    position: absolute;
    top: 0px;
    left: 150px;
    width: 100px;
    height: 100px;
    }
    #rightbar {
    background: #0f0;
    position: absolute;
    top: 0px;
    left: 250px;
    width: 50px;
    height: 500px;
    }
    #menu {
    background: #5f0;
    position: absolute;
    top: 100px;
    left: 50px;
    width: 200px;
    height: 50px;
    }
    #main {
    background: #5f5;
    position: absolute;
    top: 150px;
    left: 50px;
    width: 200px;
    height: 350px;
    }
    -->
    </style>
    </head>
    <body>
    <div id="leftbar">Left</div>
    <div id="login">Login</div>
    <div id="banner">Banner</div>
    <div id="menu">Menu</div>
    <div id="rightbar">Right</div>
    <div id="main">Main</div>
    </body>
    </html>

  11. #11
    Registered+
    Join Date
    Sep 2008
    Posts
    25
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: CSS and DIV problems.

    Another version with floating DIV, which will let you set percentages.

    <html>
    <head>
    <title>DIV Practice</title>
    <style type="text/css">
    <!--
    body {
    margin: 0px;
    padding: 0px;
    }
    #leftbar {
    background: #0f0;
    float: left;
    width: 15%;
    height: 500px;
    }
    #login {
    background: #f00;
    float: left;
    width: 35%;
    height: 100px;
    }
    #banner {
    background: #ff0;
    float: left;
    width: 35%;
    height: 100px;
    }
    #rightbar {
    background: #0f0;
    float: right;
    width: 15%;
    height: 500px;
    }
    #menu {
    background: #5f0;
    float:left;
    width: 70%;
    height: 50px;
    }
    #main {
    background: #ff5;
    float: left;
    width: 70%;
    height: 350px;
    }
    -->
    </style>
    </head>
    <body>
    <div id="leftbar">left</div>
    <div id="login">login</div>
    <div id="banner">banner</div>
    <div id="rightbar">right</div>
    <div id="menu">menu</div>
    <div id="main">Main</div>
    </body>
    </html>

  12. #12
    Uber Pantsless
    Join Date
    Jul 2008
    Location
    Wolverhampton, UK
    Posts
    505
    Thanks
    51
    Thanked
    17 times in 15 posts
    • richieuk's system
      • Motherboard:
      • Asus P5Q Pro
      • CPU:
      • Intel Q6600 Core 2 Quad (2.4Ghz)
      • Memory:
      • 4GB Corsair XMS2 DDR2
      • Storage:
      • 640GB Western Digital Sata2
      • Graphics card(s):
      • Sapphire HD4850 Dual Slot Cooler
      • PSU:
      • Corsair HX520w
      • Case:
      • Antec 300
      • Operating System:
      • Windows Vista 64bit Premium
      • Monitor(s):
      • 22" Neovo LCD + 32" HDTV
      • Internet:
      • 24Mb Virgin Broadband

    Re: CSS and DIV problems.

    haha sorry guys i forgot to tell you, the night i went to copy my code, i ended up fixing it.
    -- MY 2008 RIG --
    CASE: Antec 300/ MOBO: ASUS P5Q Pro/ CPU: Q6600/ RAM: Corsair 4GB XMS2/
    COOLING: Xigmatek Heatsink 120mm, 2x Xigmatek 120mm w/ Fan controller/
    GFX: Sapphire HD4850/ PSU: Corsair HX520/ HD: WD 640GB w/ VibeFixer
    DISPLAY1: 22" Neovo 3ms/ DISPLAY2: 32" HDTV/


    -- MY 2011 RIG --
    CASE: BitFenix Survivor/ MOBO: ASUS P8Z68V Pro/ CPU: i7 2600K @ 4.4Ghz/ RAM: Corsair 16GB Vengenge DDR3 1600MHz/
    COOLING: Antek Kuhler H20 with Push-Pull Fans EXPANSION: Black Magic Intensity HDMI 1080p Capture Card
    GFX: Sapphire HD6950 *unlocked to 6970*/ PSU: XFX 650w Modular/ HD: 60GB OCZ Agility 3 Sandforce SSD w/ 1TB Sata 3 Storage & 640GB Sata2 Backup
    DISPLAY1: 23" 3D 1080p 120Hz LG / DISPLAY2: 22" 1080p LG/



    Check out my Youtube Page for Funny Video series I make (17,000 Subscribers)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 21-05-2007, 09:16 AM
  2. Minimum DIV Height CSS
    By ACiD303 in forum Software
    Replies: 10
    Last Post: 24-04-2007, 02:31 AM
  3. CSS Guru's inside please.
    By Vini in forum Software
    Replies: 7
    Last Post: 27-03-2006, 10:00 PM
  4. CSS presentation in FF and IE
    By ikonia in forum Software
    Replies: 10
    Last Post: 30-01-2005, 06:41 PM
  5. CSS problems
    By Kezzer in forum Software
    Replies: 11
    Last Post: 18-03-2004, 12:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •