1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

problem in html and css

Discussion in 'Web Design, HTML And CSS' started by desperateboy, Oct 26, 2007.

  1. desperateboy

    desperateboy New Member

    Joined:
    Oct 26, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi
    I am trying to create a two-column layout using XHTML and CSS. I'm having a problem having the text in the second column start at the top of the column. How do I make sure that the text will go to the top of the second column?
    I don't get any reply from web site design company 's forum .I am registered with site.If u got my problem,Give relevant solution.
    Thanks in advance.
     
    Last edited by a moderator: Oct 26, 2007
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    You linked to a site which is flagged as spam site and if anybody links to that site using post your post will also get flagged as spam. I removed the link and made the post public
     
  3. Rexy93

    Rexy93 New Member

    Joined:
    Oct 26, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Designer and completing year 9
    Location:
    Australia
    Ok from reading the post are you trying to add 2 frames? If that is the problem look below. If not please tell explain again to me lol.


    Two add two frames do this.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html>
    <head>
    <title>Help you</title>
    <frameset rows="50%,50%">
    
    <frame noresize="noresize" src="frame_a.htm">
    
    <frameset cols="100%">
    <frame noresize="noresize" src="frame_b.htm">
    </frameset>
    
    </frameset>
    </head>
    <body>
    
    </body>
    </html>
    
    That is in HTML


    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Help you</title>
    </head>
    <frameset rows="50%,50%">
    <frame noresize="noresize" src="frame_a.htm" />
    <frameset cols="100%">
    <frame noresize="noresize" src="frame_b.htm" />
    </frameset>
    <noframes>
    <body>
    </body>
    </noframes>
    </frameset>
    </html>
    
    That is in XHTML.


    For this to work you have to make two new files by the name of frame_a.htm and frame_b.htm.
    To add CSS into them add the tag that links your XHTML to the CSS file.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Help Me!</title>
    <link rel="stylesheet" href="myfirststyle.css" type="text/css" />
    </head>
    <body>
    </body>
    </html>
    
     
  4. Rexy93

    Rexy93 New Member

    Joined:
    Oct 26, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Designer and completing year 9
    Location:
    Australia
    Sorry for the previous post something happened. Can you please add this onto it after.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Help Me!</title>
    </head>
    <frameset rows="50%,50%">
    <frame noresize="noresize" src="frame_a.htm" />
    <frameset cols="100%">
    <frame noresize="noresize" src="frame_b.htm" />
    </frameset>
    <noframes>
    <body>
    </body>
    </noframes>
    </frameset>
    </html>
    
    For this to work you have to create two new files named frame_a.htm and frame_b.htm.
    If you want to link a CSS file to that add this in the head tag.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html>
    <head>
    <title>Help ME!</title>
    <link rel="stylesheet" href="myfirststyle.css">
    </head>
    <body>
    
    </body>
    </html>
    
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Help ME!</title>
    <link rel="stylesheet" href="myfirststyle.css" type="text/css" />
    </head>
    <body>
    </body>
    </html>
    
    The first code tags are XHTML then HTML and same with the next two.

    Hope I helped :D
     
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    Rexy your posts had some links for which your posts went into moderation and I have approved the posts. I hope they appear correct now.
     
  6. Rexy93

    Rexy93 New Member

    Joined:
    Oct 26, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Designer and completing year 9
    Location:
    Australia
    Ummm not really. Something happened on my computer so it all stuffed up. Can you keep post 3 but delete 4 and 5.
     

Share This Page