Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

quick HTML question

  • 16-04-2003 10:39am
    #1
    Registered Users, Registered Users 2 Posts: 3,055 ✭✭✭


    So i'm fairly new to HTML and i was just wondering how do u put and text and an image into a table or just have it beside it. example:
    text
    text pic here
    text
    text

    it keeps just pushing all the stuff down. I want to have the text and the pic along side. I've tried using a tables to do it. So can someone plz help me, thanks


Comments

  • Closed Accounts Posts: 3,322 ✭✭✭Repli


    <TABLE BORDER="1">
    <TR><TD>Text
    <TR><TD>Text <TD><IMG SRC="Whatever"></IMG>
    <TR><TD>Text
    <TR><TD>Text
    </TABLE>
    
    It's easy as that :)


  • Registered Users, Registered Users 2 Posts: 2,781 ✭✭✭amen


    u really should close the tags
    <TABLE BORDER="1">
    <TR><TD>Text</td></tr>
    <TR><TD>Text</td> <TD><IMG SRC="Whatever"></IMG></td></tr>
    <TR><TD>Text</td></tr>
    <TR><TD>Text</td></tr>
    </TABLE>


  • Closed Accounts Posts: 304 ✭✭Zaltais


    u really should use proper html

    <TABLE BORDER="1">
    <TR><TD>Text</td><td>&nbsp;</td></tr>
    <TR><TD>Text</td> <TD><IMG SRC="Whatever"></IMG></td></tr>
    <TR><TD>Text</td><td>&nbsp;</td></tr>
    <TR><TD>Text</td><td>&nbsp;</td></tr>
    </TABLE>


  • Closed Accounts Posts: 7,563 ✭✭✭leeroybrown


    You really should use all lower case letters in your tags for xHTML compliance. (This could go on all day)


  • Closed Accounts Posts: 304 ✭✭Zaltais


    The table border shoud be specified by CSS.

    In fact shouldn't be using a table at all for element positioning - should use CSS (even though most of it (CSS2) isn't properlly supported)

    But don't mind me, I'm just a bit anal.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,055 ✭✭✭suppafly


    Originally posted by Repli
    <TABLE BORDER="1">
    <TR><TD>Text
    <TR><TD>Text <TD><IMG SRC="Whatever"></IMG>
    <TR><TD>Text
    <TR><TD>Text
    </TABLE>
    
    It's easy as that :)

    thats not what i wanted really. I tried that already. but anyway i worked it out my self. I just put all the text in the same cell and the had the pic in a cell next too it. Whats CSS? as i said, i've just started learning HTML so using a table was the only way i could think of positioning the pic with the knowledge of HTML i have at present. thanks thanks anyway for that.


  • Closed Accounts Posts: 304 ✭✭Zaltais


    CSS stands for Cascading Style Sheets, and is a way of specifying certain styles for certain elements of a page.

    There's a good tutorial here, but you should worry about getting the basics of HTML down before worrying about CSS.


  • Closed Accounts Posts: 7,563 ✭✭✭leeroybrown


    Right now HTML is moving away from tables as a layout structure and towards layout positioning in CSS.

    If you have a complex site using tables to do layout can be very ungainly and can cause lots of problems if you want to make changes at a later date.

    If you want to learn how to use HTML, xHTML and CSS(2) properly then you could qo through the tutorials on www.w3schools.com as suggested by Zaltais. That way any sites you will look good and will be far easier to mantain and change in future.


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    In the mean time I think what you're looking for is Alignment in your table cells.
    <TABLE>
    <TR>
    	<TD>Text</TD>
    </TR>
    <TR>
    	<TD ALIGN= RIGHT>SUPPAFLY TEXT <img src="http://www.boards.ie/bulletin/avatars/South_Park_1_-_MrHat.gif"></IMG></TD>
    </TR>
    </TABLE>
    
    


  • Registered Users, Registered Users 2 Posts: 86 ✭✭FranDrastic


    Originally posted by Repli
    <TABLE BORDER="1">
    <TR><TD>Text
    <TR><TD>Text <TD><IMG SRC="Whatever"></IMG>
    <TR><TD>Text
    <TR><TD>Text
    </TABLE>
    
    It's easy as that :)

    I can't believe you closed your <IMG> tag and nothing else. :D Well, except for the <TABLE>

    In all seriousness, it worries me that there are still people out there tagging like that! :(


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 885 ✭✭✭clearz


    Originally posted by FranDrastic
    I can't believe you closed your <IMG> tag and nothing else. :D Well, except for the <TABLE>

    In all seriousness, it worries me that there are still people out there tagging like that! :(


    Oh My God how worried are you. Do you need some Valiums to calm your self down. The fella dident close a few tags Oh, the humanity! The Horror of it all. The last fella I knew that dident close all his tags lost an arm and a leg when his computer blew up after viewing his webpage. :D:D:D


  • Registered Users, Registered Users 2 Posts: 1,268 ✭✭✭hostyle


    Originally posted by clearz
    Oh My God how worried are you. Do you need some Valiums to calm your self down. The fella dident close a few tags Oh, the humanity! The Horror of it all. The last fella I knew that dident close all his tags lost an arm and a leg when his computer blew up after viewing his webpage. :D:D:D

    OMG teh funneh!!!

    You saving up for a humour transplant? We can probably organise some kind of boards fund-raiser, especially for you.


Advertisement