Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS problem

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23714
    soulblight
    Member

    Say I would like to put two of your widgets on a page. How do I do it without the *.css files conflicting with each other?

    I’m trying to put the garage door menu at the top and have my css page look like it did before I added the garage door menu, but the css files seem to conflict with each other.

    #51389
    soulblight
    Member

    Ok so this is what my code looks like, (it’s the index page) but I’d like integrate the "auto playing Featured content slider" on the left side, and somehow integrate a "comments and article rating" system for users that visit. I don’t mind using php to accomplish this, either. I’m kinda new to css and php, but I’m excited to get started with it. I’m in college right now with my major as web graphic design, but right now I’m just doing general education classes.

    Here’s the page code so far:


    index.html




    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
    <html xmlns="http://www.w3.org/1999/xhtml"&gt;
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Metamorphosis Design Free Css Templates</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="styles.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <div id="content">
    <div id="back">
    <!– header begins –>
    <div id="header">
    <div id="menu">
    <ul>
    <li><a href="#" title="">Home</a></li>
    <li><a href="#" title="">Blog</a></li>
    <li><a href="#" title="">Gallery</a></li>
    <li><a href="#" title="">About</a></li>
    <li><a href="#" title="">Contact</a></li>
    </ul>
    </div>
    <div id="logo">
    <h1><a href="#">Metamorph_cool</a></h1>
    <h2><a href="http://www.metamorphozis.com/&quot; id="metamorph">Design by Metamorphosis Design</a></h2>
    </div>
    </div>
    <!– header ends –>
    <!– content begins –>
    <div id="main">
    <div id="right">
    <h2>Welcome To Our Website</h2><br />
    <h4><a href="#">METAMORPHOSIS DESIGN</a></h4><br />
    <p>This website template is released under a Creative Commons Attribution 2.5 License</p>
    <p>We request you retain the full copyright notice below including the link to http://www.metamorphozis.com. />
    This not only gives respect to the large amount of time given freely by the developers
    but also helps build interest, traffic and use of our free and paid designs. If you cannot (for good
    reason) retain the full copyright we request you at least leave in place the
    Website Templates line, with Website Templates linked to http://www.metamorphozis.com. If you refuse
    to include even this then support may be affected.<br />
    <br />
    You are allowed to use this design only if you agree to the following conditions:<br />
    – You cannot remove copyright notice from this design without our permission.<br />
    – If you modify this design it still should contain copyright because it is based on our work.<br />
    – You may copy, distribute, modify, etc. this template as long as link to our website remains untouched.<br />
    <br />
    The Metamorphosis Design : 2008 </p>
    <p class="date"><img src="images/comment.gif" alt="" /> <a href="#">Comments(2)</a> <img src="images/timeicon.gif" alt="" /> 21.02.</p>
    <h4><a href="#">Web Design Starter’s Guide</a></h4><br />
    <p><a href="http://www.metamorphozis.com/free_templates/free_templates.php">1. More Free Website Templates</a><br />
    <a href="http://www.metamorphozis.com/website_hosting/index.php">2. Top Hosting Providers</a><br />
    <a href="http://www.metamorphozis.com/contact/contact.php">3. Support For Free Website Templates</a></p>
    <p class="date"><img src="images/comment.gif" alt="" /> <a href="#">Comments(8)</a> <img src="images/timeicon.gif" alt="" /> 13.46.</p>
    <h4><a href="#">FREE WEBSITE TEMPLATES</a></h4><br />
    <p>Consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat.</p>
    <p>Sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autemr in hendrerit in vulputate velit esse molestie consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat…</p>
    <p class="date"><img src="images/comment.gif" alt="" /> <a href="#">Comments(8)</a> <img src="images/timeicon.gif" alt="" /> 13.46.</p>
    </div>
    <div id="left">
    <h3>Calendar</h3>
    <ul>
    <li id="calendar">
    <div id="calendar1">
    <table id="calendar2" summary="Calendar">
    <caption>
    January 2008
    </caption>
    <thead>
    <tr>
    <th abbr="Monday" scope="col" title="Monday">M</th>
    <th abbr="Tuesday" scope="col" title="Tuesday">T</th>
    <th abbr="Wednesday" scope="col" title="Wednesday">W</th>
    <th abbr="Thursday" scope="col" title="Thursday">T</th>
    <th abbr="Friday" scope="col" title="Friday">F</th>
    <th abbr="Saturday" scope="col" title="Saturday">S</th>
    <th abbr="Sunday" scope="col" title="Sunday">S</th>
    </tr>
    </thead>
    <tfoot>
    <tr>
    <td abbr="Des" colspan="3" id="prev"><a href="#">&laquo; Des</a></td>
    <td class="pad">&nbsp;</td>
    <td abbr="Feb" colspan="3" id="next" class="pad"><a href="#">Feb &raquo;</a></td>
    </tr>
    </tfoot>
    <tbody>
    <tr>
    <td colspan="2" class="pad">&nbsp;</td>
    <td>1</td>
    <td>2</td>
    <td>3</td>
    <td>4</td>
    <td>5</td>
    </tr>
    <tr>
    <td>6</td>
    <td>7</td>
    <td>8</td>
    <td>9</td>
    <td>10</td>
    <td>11</td>
    <td>12</td>
    </tr>
    <tr>
    <td>13</td>
    <td>14</td>
    <td>15</td>
    <td>16</td>
    <td>17</td>
    <td>18</td>
    <td>19</td>
    </tr>
    <tr>
    <td>20</td>
    <td id="now">21</td>
    <td>22</td>
    <td>23</td>
    <td>24</td>
    <td>25</td>
    <td>26</td>
    </tr>
    <tr>
    <td>27</td>
    <td>28</td>
    <td>29</td>
    <td>30</td>
    <td>31</td>
    <td class="pad" colspan="2">&nbsp;</td>
    </tr>
    </tbody>
    </table>
    </div>
    </li>
    </ul>
    <br />
    <h3>Nunc pellentesque</h3>
    <ul>
    <li><ul>
    <li><a href="#">Vivamus id arcu</a></li>
    <li><a href="#">Duis congue ultricies</a></li>
    <li><a href="#">Purus in mollis purus</a></li>
    <li><a href="#">Orci nonummy fringilla</a></li>
    <li><a href="#">Pellentesque at lorem</a></li>
    <li><a href="#">Enim vivamus convallis</a></li>
    <li><a href="#">Ipsum vitae felis</a></li>
    <li><a href="#">Integer facilisis</a></li>
    <li><a href="#">Sagittis Bibendum Erat</a></li>
    </ul>
    </li>
    </ul>
    <br />

    </div>

    <!–content ends –>
    <!–footer begins –>
    </div>

    <div id="footer">
    <p>Copyright &copy; 2008. <a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> | <a href="http://validator.w3.org/check/referer&quot; title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer&quot; title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a></p>
    <p>Design by <a href="http://www.metamorphozis.com/&quot; title="Free Templates">Free Templates</a>, coded by <a href="http://www.flashtemplatesdesign.com&quot; title="Falsh Templates">Flash Templates</a>
    </p>
    </div>
    </div>
    </div>
    <!– footer ends–>
    </body>
    </html>

    This is what the layout currently looks like:
    http://content.screencast.com/users/Ken … 6_1930.png


    The CSS file for this looks like:******************************************


    /*
    Design by Metamorphosis Design
    http://www.metamorphozis.com
    Released for free under a Creative Commons Attribution 2.5 License
    */

    *
    {
    margin: 0px;
    padding: 0px;
    }

    a:link {
    color: #ffffff;
    }

    a:hover {
    text-decoration: none;
    color: #ffffff;
    }

    a:visited {
    color: #ffffff;
    }

    body {

    background: #000000 url(images/back_all.gif) repeat-x;
    font: 13px Tahoma, Verdana, Arial, Helvetica, sans-serif;
    color: #ffffff;
    }

    #content
    {
    margin: 0 auto;
    width: 766px;
    text-align: left;
    border-left: 5px solid #ffffff;
    border-right: 5px solid #ffffff;
    }

    #back
    {

    width: 766px;
    background: #000000;
    }

    #header {
    height: 359px;
    text-align: left;
    }

    #menu
    {
    width: 666px;
    height: 52px;
    padding-left: 100px;
    padding-top: 32px;
    }

    #menu ul {
    list-style: none;
    }

    #menu li {

    display: inline;

    }

    #menu a {
    float: left;
    width: 133px;
    height: 37px;
    display: block;
    text-align: center;
    text-decoration: none;
    color: #595959;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding-top: 25px;
    background: url(images/button.gif) no-repeat;
    }

    #menu a:hover {
    width: 133px;
    height: 47px;
    padding-top: 10px;
    color: #FF0000;
    background: url(images/button_r.gif) no-repeat;
    text-decoration: underline;
    }

    #logo {
    background: url(images/header.jpg) no-repeat;
    width: 736px;
    height: 239px;
    text-align: right;
    padding-right: 30px;
    padding-top: 30px;
    }

    #logo a {
    text-decoration: none;
    text-transform: lowercase;
    font-style: italic;
    font-size: 18px;
    color: #ffffff;
    }
    #logo H2 a
    {
    font-size: 12px;
    }

    #left
    {
    padding: 10px;
    width: 237px;
    padding-right: 1em;
    }

    #left H3
    {
    width: 237px;
    height: 38px;
    font-size: 14px;
    font-weight: bold;
    padding-left: 25px;
    padding-top: 15px;
    text-transform: uppercase;
    color: #000000;
    background: url(images/title.gif) no-repeat
    }

    #left ul {
    list-style: none;
    }

    #left li ul {
    border: 0px;
    margin-left: 40px;
    margin-bottom: 10px;
    }

    #left li li {
    padding: 4px 20px;
    background: url(images/small.gif) no-repeat left;
    }

    #left a {
    color: #A4D2FB;
    }
    #left a:visited {
    color: #A4D2FB;
    }

    #left p
    {
    padding: 10px;
    }

    #calendar1 {
    padding: 0 10px 20px 10px;
    }

    #calendar table {
    width: 100%;
    text-align: center;
    }

    #calendar thead {

    }

    #calendar tbody td {
    border: 1px solid #F1F1F1;
    }

    #calendar #prev {
    text-align: left;
    }

    #calendar #next {
    text-align: right;
    }

    #calendar tfoot a {
    text-decoration: none;
    font-weight: bold;
    }

    #calendar #now {
    background: #696969;
    border: 1px solid #ff0000;
    font-weight: bold;
    color: #ffffff
    }

    #right
    {
    float: right;
    width: 460px;
    padding-right: 10px;
    }

    #right H4
    {
    margin: 0;
    padding: 0px;
    font-size: 12px;
    color: #A4D2FB;
    }

    #right a
    {
    color: #A4D2FB;
    text-decoration: none;
    }

    #right p {
    margin: 0;
    padding: 0;
    padding-bottom: 10px;
    }

    #right h2 {
    margin: 0;
    padding: 0;
    padding-top: 10px;
    color: #A4D2FB;
    }
    .date {
    text-align: right;
    color: #A4D2FB;
    font-size: 11px;
    }

    .date a {
    color: #A4D2FB;
    }

    #footer {
    height: 37px;
    clear: both;
    padding-top: 10px;
    background: url(images/footer.gif) repeat-x;
    border-top: 4px solid #2C5C89;
    }

    #footer p {
    margin: 0;
    font-size: 10px;
    text-align: center;
    color: #595959;
    }

    #footer a {
    color: #595959;
    }



    So yeah I’m not sure what to change, it looks kind of confusing to me. Anyone have any ideas? I’d like the auto playing content slider to go on the left side beneath the top menu.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.