Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-28-2011, 12:25 AM   PM User | #1
Booned
New to the CF scene

 
Join Date: Nov 2011
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Booned is an unknown quantity at this point
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 12:29 AM..
Booned is offline   Reply With Quote
Old 11-28-2011, 12:45 AM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
Booned (11-28-2011)
Old 11-28-2011, 12:49 AM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Old 11-28-2011, 12:52 AM   PM User | #4
Booned
New to the CF scene

 
Join Date: Nov 2011
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Booned is an unknown quantity at this point
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 01:03 AM..
Booned is offline   Reply With Quote
Reply

Bookmarks

Tags
align, css, html, text

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:24 PM.


Advertisement
Log in to turn off these ads.