- This topic is empty.
-
AuthorPosts
-
March 27, 2012 at 5:06 am #37358
marksweb
MemberI’ve had to use HTML frames for the first time since the 90s and I’m having trouble getting the right side of my browser window to look right. My main problem is that I’m working with exported HTML so I can’t manipulate the layout, and this is also why I’ve had to use frames.
I’ve got a header frame which has a series of images, a repeating image and ends with a curve. Then I’ve got a sidebar and main content frame below and as you resize the window I’m having trouble getting the content frame right side to line up with the curve of the header. Beyond that there was a footer image to finish of the design but I’ve not implemented that.
I’ve had trouble also allowing for the scroll bar and the effect that has on that right side when you’ve got a frame split. Currently I’ve forced a vertical scroll bar in the CSS, but not included that in my demo code.
Please excuse the quality of my CSS. I’m sure it’ll offend most, but I haven’t worked with CSS or Frames for ages so it’s a bit of a mess :(
live demo: http://dl.dropbox.com/u/3755926/cssTricks/main.html
Zip of the site: http://dl.dropbox.com/u/3755926/cssTricks.zipMarch 27, 2012 at 8:15 am #100026Bogdan Dimitrov
ParticipantHi marksweb,
The first think that I saw is that background images are with different widths.
This difference can be the problem.
Take a look for:
1. .logos background image – it is 39px width /header_right.jpg/
2. html, body, #page, #main – background image – it is 32px width /border_right.jpg/March 27, 2012 at 8:31 am #100027marksweb
MemberOh I forgot to replace that. That was my quick fix this morning but I didn’t mean to include that in the zip. I’ve corrected that.
When the scroll bar appears it moves the frame’s content in however which causes the alignment to go wrong. That’s where I get lost – how do you compensate for the scroll bar when setting this up?
ThanksMarch 27, 2012 at 8:46 am #100028Bogdan Dimitrov
ParticipantIf you mean left frame scroll bar when shrink browser height – under Mozila Firefox I don’t see an problem when scroll bar is visible or not.
In other side under Chrome if there is no sidebar I see white gap between left and right frame.
You can visually fix this by adding background-color: #F3F7F8 for html.
Hope it help.March 27, 2012 at 8:53 am #100030marksweb
MemberSorry just realised I’d totally missed off the fact that this issue arises on the ‘BPTRTI_EMP_1’ page where all the dummy content is. There you’ll see that it is over on the right side.
I assume this problem is caused by the two different frames. If you had just 1, the whole page would shift but here it puts a scrollbar on the content frame & might be a problem you can’t avoid.
March 27, 2012 at 9:03 am #100031Bogdan Dimitrov
ParticipantOk I made browser small enough to see this right scroll bar.
I tried with firebux something like this:
– to #page add – overflow:hidden;
– to #main add – overflow: auto;
and looks like it worksMarch 27, 2012 at 9:06 am #100032marksweb
MemberThat looks good to me. Thank you very much :D
March 27, 2012 at 9:09 am #100033Bogdan Dimitrov
ParticipantNo problem. Good luck! ;D
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.