Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Positioning center column with a fixed left margin on background image (http://forum.bytesforall.com/showthread.php?t=14603)

annsworld Jun 12, 2011 06:08 AM

[SOLVED] Positioning center column with a fixed left margin on background image
 
Hi,


I have added a background image to www.annsworld.com

I would like the actual website starting with the logo area's upper left hand corner to be positioned at the top (which it does) and 200px away from the background image's left edge. Currently it centers horizontally.

There must be a way of positioning the whole thing align: left; padding-left:200px; (or something like that. But where would I actually have to put this?

ATO -> ???

Thanks,
Ann.

lmilesw Jun 13, 2011 09:03 AM

To position the center area as you want you would use something like the following.
HTML Code:

#wrapper {
    left: 200px;
    position: absolute;
}

As an aside the file size of your background image is very large (almost 1Mb) and will slow down page loads.

annsworld Jun 13, 2011 10:18 AM

Thank you. Do I put that into the CSS or ito the header where I put the code for the background image?

Ann.

annsworld Jun 13, 2011 10:20 AM

Missed the bit about the page loads. Oh thank you, I need to look at that. I need actually to rewrd the background image - I took the one from twitter to test. :-)

As an aside, how do I get an image to tile? For the other site I am working on.

lmilesw Jun 13, 2011 02:52 PM

Quote:

Originally Posted by annsworld (Post 67891)
Do I put that into the CSS or ito the header where I put the code for the background image?

You put it in ATO>Add HTML/CSS Inserts>CSS Inserts

lmilesw Jun 13, 2011 02:53 PM

Quote:

Originally Posted by annsworld (Post 67892)
As an aside, how do I get an image to tile? For the other site I am working on.

You use the CSS repeat command. See w3schools.com

annsworld Jun 13, 2011 10:02 PM

Thank you Larry,

Turns out I had a semicolon too many in there that's why it didn't tile. Life would be soooo much easier without typos!! :)

The wrapper thing is not working. The inner column moves around as before rather that staying attached to the left hand side at 200px. Any ideas?

lmilesw Jun 14, 2011 06:29 AM

So just to be clear... Are you saying you put the following in the CSS Inserts box in the theme options? (I changed it a bit as I think the 230px is more what you need.)
HTML Code:

div#wrapper {
    position: absolute;
    left: 230px;
}

If that isn't working try adding !important after each line as below.
HTML Code:

div#wrapper {
    position: absolute !important;
    left: 230px !important;
}


annsworld Jun 22, 2011 02:08 AM

Hi Larry, thanks.

Sorry about the delay - I haven't been able to work on this for a few days.

Anyhow, I put in ...
Quote:

div#wrapper {
position: absolute !important;
left: 230px !important;
}
... and it is completely ignoring that, as well. :-(

lmilesw Jun 22, 2011 09:46 AM

Isn't CSS fun?;)
It sometime is a matter of trying this and trying that so try this which worked in my tests.

In ATO>Style & configure Layoue>Layout container style
  • Change position: relative; to position: absolute;
  • Add width: 760px;
  • Add left: 230px;
You can also remove the code from before just to clean things up.

annsworld Jun 22, 2011 09:52 AM

lol... you can see how much fun I am having from the bite marks on the side of the table I have been biting into ... :-)

...

trying

...

oh shit... big problem. Now the centre column is tiny. But it did fix the whole thing ont he LHS where it is supposed to go.

Have a look ...

annsworld Jun 22, 2011 09:55 AM

Took them out one by one. It is the "relative" substituted for "absolute" which makes the centre column really tiny. WHY?????

lmilesw Jun 22, 2011 09:56 AM

Did you add width: 760px ?

annsworld Jun 22, 2011 09:58 AM

Actually just had another look. it makes the right sidebar attach to the left border

The centre column seems to be one letter wide. Showing the title of a post basically vertically.

annsworld Jun 22, 2011 10:00 AM

yes I did.

I have this:

Quote:

position: absolute;
width: 760px;
left: 230px;
pasted in there.

it seems that one needs perhaps to put something else there for the centre column width?

lmilesw Jun 22, 2011 10:01 AM

It looks like you still haven't added width: 760px; to the Layout Container Style box

annsworld Jun 22, 2011 10:05 AM

I did, though. Look: :-)

http://www.annsworld.com/wp-content/.../06/layout.jpg

lmilesw Jun 22, 2011 02:29 PM

Add !important after the width and see what happens. Your code would look like the following.
HTML Code:

position: absolute;
width: 760px !important;
left: 230px;


annsworld Jun 23, 2011 04:30 AM

Yes! That did it! Thank you.

one donation coming up. :-)

Thanks,
Ann.


All times are GMT -6. The time now is 08:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.