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 10-02-2012, 06:44 PM   PM User | #1
LRRoberts0122
New Coder

 
Join Date: Jul 2011
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
LRRoberts0122 is an unknown quantity at this point
CSS: "Sidebar"

Hi everyone. I have this section that I'm doing for school, so we can't touch the HTML. I would like the little sidebar with the three lion pictures and "See Also" text to extend across the entire left side of the page. Is there any way to do that? The only thing we can add are DIVs, IDs, Classes, and Spans.

My html is here:
http://lrroberts0122.github.com/DWS/lab3/index.html

My css is here:
http://lrroberts0122.github.com/DWS/lab3/css/main.css

Thank you for your help.
LRRoberts0122 is offline   Reply With Quote
Old 10-02-2012, 07:06 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
what do you mean by you cannot change the html? Do you mean you can only add to it? If you cannot change the html, then you cannot add new elements such as divs or spans.

Please clarify. Also side note, forum rules say we don't help with homework, but if you can clarify the rules you have to follow, perhaps we can nudge you in the right direction to find a solution
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is offline   Reply With Quote
Users who have thanked DanInMa for this post:
LRRoberts0122 (10-02-2012)
Old 10-02-2012, 07:11 PM   PM User | #3
LRRoberts0122
New Coder

 
Join Date: Jul 2011
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
LRRoberts0122 is an unknown quantity at this point
Thanks, basically, we can't touch or rearrange existing html, or restructure it, we have to do it with CSS.

I'm trying to get the little sidebar that's a different color to extend along the entire portion of the page, but I'm not sure how to do it. I'm having problems, because I've been trying to float the top two sections right at 720px width, and it's not floating. I may be having some specificity issues, but I'm not sure.

But I'd like the little bar to extend across the entire left side if that's possible. If not, it's okay. It was just something extra I was hoping to add to make it look nicer.
LRRoberts0122 is offline   Reply With Quote
Old 10-02-2012, 07:17 PM   PM User | #4
LRRoberts0122
New Coder

 
Join Date: Jul 2011
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
LRRoberts0122 is an unknown quantity at this point
I can add additional <div> and <span> though, and give those classes and ID's, but that's pretty much it.
LRRoberts0122 is offline   Reply With Quote
Old 10-02-2012, 07:27 PM   PM User | #5
LRRoberts0122
New Coder

 
Join Date: Jul 2011
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
LRRoberts0122 is an unknown quantity at this point
Okay, so I got the floats to work when I redid the nesting in the HTML.

Yay! Okay, but I still don't know or understand how to make the whole area that side-bar color:

http://lrroberts0122.github.com/DWS/lab3/index.html
http://lrroberts0122.github.com/DWS/lab3/css/main.css
LRRoberts0122 is offline   Reply With Quote
Reply

Bookmarks

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 07:42 AM.


Advertisement
Log in to turn off these ads.