Thread: css/html

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    465

    css/html

    I'm designing a website and I can't seem to get some of my text up on the first line.
    The html:
    Code:
    <div id="new-s">
    Topic:</div>New site
    <div id="new-s">
    Date:</div>February 6,2005
    <div id="new-s">
    Time:</div>9:28 PM CST
    <div id="new-s">
    Poster:</div>Shelby the webmaster
    The css:
    Code:
    #new-s{color:#0000FF;font-weight:bold;}
    It moves stuff like New site and February 6,2005 onto the line below Topic and Date. Could someone please help me out?
    My computer is awesome.

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    IDs are allowed for only 1 object. To use the same style use a class and in the css replace # with .
    Also "New Site", February 6,2005", and the time are outside of any block element.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    What would I put them in? If I put them in new-s they would be blue.
    My computer is awesome.

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Well you don't have to put them into a div, it just makes it easier to change it later.

    Try:
    Code:
    <style type='text/css'>
    .new-s{color:#0000FF;font-weight:bold;display: inline;}
    </style>
    
    <div class="new-s">Topic:&nbsp; </div>New site<br/>
    <div class="new-s">Date:&nbsp;&nbsp; </div>February 6,2005<br/>
    <div class="new-s">Time:&nbsp;&nbsp; </div>9:28 PM CST<br/>
    <div class="new-s">Poster: </div>Shelby the webmaster<br/>

  5. #5
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    AAAGGGG I need a sleek color scheme for my website. Right now it is just grey. I would post the image I thought about using for background, but I don't know how.
    My computer is awesome.

  6. #6
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    IMO unless the image is a very good texture, it'll suck as a background

  7. #7
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    How do i put stuff on navbars created in graphics programs like here or here ?
    Last edited by cerin; 02-26-2005 at 10:55 PM.
    My computer is awesome.

  8. #8
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Look at the page's source code...

  9. #9
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    What graphics program can I make that kind of thing with I know somebody told me to use gimp but there isn't a tool for making curves.
    My computer is awesome.

  10. #10
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    You really are an idiot, huh?

    Any kind of graphics program can be used to make curves, including GIMP. It's not just going to spit one out for you... you have to actually have some skill.

Popular pages Recent additions subscribe to a feed