The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Repeating Horizontal Image wont align at top!, Repeating Horizontal Image wont align at top!
j00sh
post Apr 10 2007, 05:56 PM
Post #1





Group: Members
Posts: 5
Joined: 10-April 07
Member No.: 2,480



The repeating horizontal image at the top of my page wont align at top and the image on the page wont align centered?!

How should I go about fixing this?

Here's the problem

PS: I realize the horizontal image is smaller...its just used as an example.

This post has been edited by j00sh: Apr 10 2007, 06:40 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 10 2007, 09:40 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



QUOTE
The repeating horizontal image at the top of my page wont align at top

Because the DIV it's used with isn't at the top. Either remove the default margin and padding from BODY or use the background image directly with BODY


QUOTE
and the image on the page wont align centered?!

Do you want it centered on the page? The DIV it's used as background for is positioned 50% from the left, so the background can't very well be centered on the page.

I'm not sure I get this centering thing right, but if you mean center of the page I'd rather center the div. I'd also use only one div and get rid of the positioning, z-indexes and so on. Something like so.


CODE
body      { margin: 0; padding: 0;
            background: #070707 url(http://i16.tinypic.com/43pgbaq.jpg) repeat-x }

.div1     { height:900px; width: 900px;
            margin: auto;
            background: url(http://i13.tinypic.com/2jaxf1e.jpg) center }


HTML
<div class="div1"></div>


Is that how you mean? unsure.gif

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 10 2007, 09:49 PM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,733
Joined: 9-August 06
Member No.: 6



BTW a large picture mainly of the color black is a little frivolous. I'd cut the image down and match the background color for body to the black in the image instead. Also, the text uses an ordinary font so why not use real text?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
j00sh
post Apr 10 2007, 09:56 PM
Post #4





Group: Members
Posts: 5
Joined: 10-April 07
Member No.: 2,480



You are amazing! thanks for the help, worked flawlessly.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
j00sh
post Apr 10 2007, 10:01 PM
Post #5





Group: Members
Posts: 5
Joined: 10-April 07
Member No.: 2,480



QUOTE(pandy @ Apr 10 2007, 09:49 PM) *

BTW a large picture mainly of the color black is a little frivolous. I'd cut the image down and match the background color for body to the black in the image instead. Also, the text uses an ordinary font so why not use real text?


I changed the background image a little so it would include the gradient...umm as for the text, I though it looked good and was just going to make hotspots in dreamweaver? I dunno. I was trying to find someone else to help me with coding and web design but no one was willing so I figured Id get a little help here and give it a shot myself.



How would I go about placing a text similar to the one on the image, in the same spot but just normal font and not an image like you suggested?

This post has been edited by j00sh: Apr 10 2007, 10:06 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 06:20 AM