This is a discussion on "Background image left and right of centered div" within the Web Page Design section. This forum, and the thread "Background image left and right of centered div are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Background image left and right of centered div
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Background image left and right of centered div
I have all of my content in a wrapper div which postions center of the screen so it will always be in the center no matter what screen resolution a user has.
I have noticed that becuase I have a high screen resolution that there is a lot of empty space to the left and right of all the content. I have tried changing the body colour with my stylesheet but the wrapper div is affected by the body colour. I only noticed this becuase I am thinking about having a repeated image to the left and right space to give it a pillar effect. I want to break up the page so it doesn't look so white. Is there something wrong with my css that is taking on the body color
|
|
|
|
||||
|
Re: Background image left and right of centered div
make an image that is 770px wide and use background-repeat:repeat-y;
It would be easier to help if you posted an URL...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
||||
|
Re: Background image left and right of centered div
actually.... I would make an image around 2000px wide, with a 775px hole in the middle.
On either side of this hole, just add your design you want to repeat. Then set this as a centered background on the body element. The hole should align perfectly to your content, leaving a left and right repeated background.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
||||
|
Re: Background image left and right of centered div
here is the url
http://www.project-sw.co.uk/jack/ and even for my old one http://www.project-sw.co.uk Thanks peeps |
|
|||
|
Re: Background image left and right of centered div
If you view your new site in Firefox, you will see that the navgation block titles are out of alignment. |
|
||||
|
Re: Background image left and right of centered div
Yeah I know
It's something i got to sort out I noticed firefox interprets some css differently than IE like the em |
|
|||
|
Re: Background image left and right of centered div
Because Firefox, Opera and others are far more standards compliant than IE, you should get in the habit of getting your sites working perfectly in Firefox first and then tweak as required for IE. |
|
||||
|
Re: Background image left and right of centered div
I have started to make the site cross browser compliant but have come across a problem.
I have made a div inside a div which now makes the blue bar appear aligned with the little image aligned correctly. I need some text such as Navigation, Membership etc but if i use <h3> or <p> to add the text I noticed that the text is not inline with the image but pushed down slightly How can I align the text next to the image?
|
|
|||
|
Re: Background image left and right of centered div
What's this supposed to be doing?
ANd why do you have another menu on the right as a selection box? This just adds confusion for the end user. Your code has a mix of lower and upper case tags. Your menu is over-structured. Your menu block titles can also be an <li>, just a special one with an image and text. I've said this to you before but I guess you didn't take it on board. You need to go and do a lot of reading and working through some good books and/or online tutorials. |
|
||||
|
Re: Background image left and right of centered div
Quote:
The nav div used to be in my stylesheet for the navigation on a previous site. Now i use it for the blue bar underneath the title banner image instead of using a blue bar image. Using a div saves on download time for the user. As for the ul id="menu" that is for a Javascript expanding menu where one on the nav links can expand vertically so show related links. It currently does work properly in Firefox and I know why. I just need to find a solution. Have a look in IE and you will see |
|
|||
|
Re: Background image left and right of centered div
Quote:
As far as your second comment goes, you are completely missing the point. The rules are that you can only have an 'id' occur once on a page. It is supposed to be UNIQUE. What ever you think you are doing with the navigation <ul>'s, you shouldn't have two with the same id. |
![]() |
| Tags |
| background, image, left, right, centered, div |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BG image centered | afowler | Web Page Design | 3 | Oct 16th, 2007 16:34 |
| background image not big enough | mykl | Web Page Design | 7 | Oct 11th, 2007 19:08 |
| background IMAGE"S" need one on left one on right | bruno89 | Web Page Design | 11 | Jan 28th, 2007 05:15 |
| repeat a horizontally centered background image | Legacy_Staff | Web Page Design | 12 | Jul 14th, 2006 20:23 |
| Background image overlaping footer image at bottom of div | lw_d | Web Page Design | 4 | Mar 21st, 2006 00:27 |