6 replies [Last post]
ata8
ata8's picture
User offline. Last seen 1 year 7 weeks ago. Offline
rank Regular
Regular
Timezone: GMT+3.5
Joined: 2010-02-09
Posts: 19
Points: 28

Hi
i styling a web page like this page <a href="http://www.srbiau.ac.ir/"></a>
when u see this page in wide monitors u see two top red background that repeated x to left and right
and center div (i mean main body ) is fixed to the center
how can i make like this
as u see this page created by table

Tony
Tony's picture
User offline. Last seen 41 min 20 sec ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3809
Points: 1244

Just put the background on

Just put the background on the body and center the content via margin: 0 auto;

Your question may have already been answered, search and read before you ask.

ata8
ata8's picture
User offline. Last seen 1 year 7 weeks ago. Offline
rank Regular
Regular
Timezone: GMT+3.5
Joined: 2010-02-09
Posts: 19
Points: 28

how

how can i do this
left and right background image are different

Tony
Tony's picture
User offline. Last seen 41 min 20 sec ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3809
Points: 1244

You would need to find a 3

You would need to find a 3 column layout with the middle column fixed width and do pretty much what you are doing now with the table.

Your question may have already been answered, search and read before you ask.

ata8
ata8's picture
User offline. Last seen 1 year 7 weeks ago. Offline
rank Regular
Regular
Timezone: GMT+3.5
Joined: 2010-02-09
Posts: 19
Points: 28

i dont understand

i dont understand what u mean find 3 column layout
can u bring example for me

Tony
Tony's picture
User offline. Last seen 41 min 20 sec ago. Offline
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3809
Points: 1244

Hi ata8, What you are trying

Hi ata8,
What you are trying to do is not as simple as it seems.
If you don't understand what I suggested in my last post you would be better off keeping your current layout or simplifying your design.
Otherwise you can search: http://www.google.com/search?q=css+3+column+layout+fixed+center
You will need to do a lot of experimenting.

Your question may have already been answered, search and read before you ask.

ata8
ata8's picture
User offline. Last seen 1 year 7 weeks ago. Offline
rank Regular
Regular
Timezone: GMT+3.5
Joined: 2010-02-09
Posts: 19
Points: 28

thank you

thank you
i have got you