Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Getting Text to show next to Image

    Hey all Im doing a project for class and I am having a problem getting my text to show properly.

    On my page I am making a layout for a HULUplus website based on the mobile app. My problem is all my episode information is showing up below the image it represents instead of to the right of it.

    http://sulley.dm.ucf.edu/~zz669709/d...ent3/main.html - Main Page

    http://sulley.dm.ucf.edu/~zz669709/d...nt3/queue.html - Queue Page

    Only those 2 links are functional on the page. On each of them though I can not seem to get the episode information to appear to the right of the video image. I am using the 960grid system as a base(class req), as well as, reset.css and text.css.

    On another note - On my page I am having a spacing issue in the header/logo section. The Grey bar below the Black strip at the top should be the same width as the upper menu(Main, TV, Movies, Queue). As you can see it is smaller. Basically it should look like this: http://svad.cah.ucf.edu/~jfriskics/h...ages/queue.jpg
    When I try and alter it it mashed the whole top up.
    Last edited by Booned; 11-28-2011 at 01:29 AM.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,688
    Thanks
    22
    Thanked 1,829 Times in 1,813 Posts
    Hello Booned,
    You probably need to float those images. Floats are how we usually put things beside each other.

    See a good float tutorial here.
    See image captions made easy here.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    Booned (11-28-2011)

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,688
    Thanks
    22
    Thanked 1,829 Times in 1,813 Posts
    You have #background containing your menu. It is set at 25px height.

    Inside that element, you use div classes .mainButtonCurrent and .mainButtonBorder for your menu but you set them at 42px height.

    See the box model here. The box model says that whatever you put inside an element cannot be larger than that element. margin/padding/border all count when figuring width/height.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Wow thanks. That wasnt my issue, but just you saying that helped me solve my image/text issue. I had the same class named for my Image as well as a <p> element. Didnt notice until I went in to check if my floats were working. Silly. Works now.

    Looking into the other issue. Thank you for you responses. Ok after looking at your idea I messed with the height of #background, but that only made the black bar larger, I needed the grey bar below it larger. So, I just expanded the height of my h1#logo and made the logo.img a css class as to adjust the margin and push it down. It worked, not sure if it was proper, but it validates.
    Last edited by Booned; 11-28-2011 at 02:03 AM.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •