CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 5th, 2013, 04:54 PM
gravesend46 gravesend46 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 1 gravesend46 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 5 sec
Reputation Power: 0
Newbie: how to extend background bar to screen edge

I am trying to extend the black background of this Twitter scroller here:

Code:
edm73.co.uk


so that it extends to the left edge of the screen. I need the Twitter logo and scroller/fade to stay where they are but just the black background element to extend the full way across. Have tried tweaking the CSS but nothing really works as desired.

Reply With Quote
  #2  
Old February 5th, 2013, 06:40 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
your mark-up is a bit of a mess, it can be done simpler. Also if the background extends to the left you wont see your logo "mechanex"

What you want to do is make a header div with a width of 100% give it a fixed height and a background (with that black gradient)
Inside that div you can put another div with a fixed width and height
Code:
<body>
   <div id="header">
         <div id="twitterlogo"></div>
    </div>


some css (fill this in yourself with correct values)
Code:
#header{height:150px;background:url('sprite.jpg') 0 0 repeat-x}
#twitterlogo{width 300px;height:150px;float:right;background: url('sprite.jpg') 0 150px no-repeat}


P.s. you can place the feed and other stuff in that container (#header) make sure you read about "Float" and "Clear"
__________________
PHP Tutorial

Last edited by aeternus : February 5th, 2013 at 06:43 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Newbie: how to extend background bar to screen edge

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap