#1
  1. No Profile Picture
    Just Another Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Middle America
    Posts
    41
    Rep Power
    14

    silly little css problem


    ok... i have a really dumb question, and it probably stems from me not really understanding CSS very well.

    I am simply putting calling on a <h3> style for an area of text.

    My code is as follows...
    PHP Code:
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <
    tr
    <
    td bgcolor="BBC3D3" align="left">
    <
    img src="images/navbar/curve.jpg" width="30" height="20"> <h3>EVENTS</h3>
    </
    td>
    <
    code continues on....> 
    for some reason, and this is probably SUPPOSED to happen, this always brings my text down to the next line like i put a <p> before it. I want my text to be right next to the image like it should be in my code.

    what am i doing wrong? and feel free to ridicule me as i realize this is probably a dumb question.

    thanks
  2. #2
  3. No Profile Picture
    aHVoPw==
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2001
    Posts
    1,058
    Rep Power
    15
    this is just a misunderstanding of html tags. any <h#> tags are header tags, and it automatically adds that paragraph break.
    So you should use the <font size=#> tag to do this.
    Visit my new IIS Tutorial Series!
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    this is just a misunderstanding of html tags. any <h#> tags are header tags, and it automatically adds that paragraph break.
    Agreed, although I would apply a Class to the text rather than adding a <font> tag
  6. #4
  7. No Profile Picture
    Just Another Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Middle America
    Posts
    41
    Rep Power
    14
    so.... how do i use a <class> tag. i am looking some stuff up on the net tutorial-wise, but it's just confusing me more.

    Thanks for all your help!
  8. #5
  9. No Profile Picture
    aHVoPw==
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2001
    Posts
    1,058
    Rep Power
    15
    Code:
    <style>
    .bleh	{ color: green; }
    </style>
    
    <font class="bleh">Title</font>
    and it doesn't have to be in the font tag. it could be in span, inputs, etc.
    Visit my new IIS Tutorial Series!
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    Here's an introduction to CSS:
    http://www.htmlgoodies.com/beyond/css.html

IMN logo majestic logo threadwatch logo seochat tools logo