473,378 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Help with DIV layer positioning


Hi all,

I'm trying to code a layout in DIVs but I'm running into a fe
problems. Here's the screenshot of the layout in Adobe Photoshop :

http://blessedbeproductions.com/ftfgscreenshot.jpg

(excuse the grittiness)

I've managed to code the columns with absolute coding, but I want to d
the following :

a) Make the divider line a small 1-pixel .GIF that repeats downwards

b) Align the whole layout centrally, so that it doesn't look like it'
wasting so much space on the right side on 1024x768 res (I have tha
resolution, but so far I designed it so it'll fit 800x600 res)

I managed to do (b) on [my demand] (http://mydemand.net : no matte
which res you use, it's neatly at the center and it "fills out") but i
seems that I can't do (a) and (b) TOGETHER.

If I try to align the layout centrally (as with [my demand]) th
background line would not work, it would break off. If I did th
background line, the layout would be stuck to the top left corner o
the screen, making it look ugly and a bit of a space waster.

Intensify.org manages to do this but I haven't figured out how.

Is there a way to combine the two, please?

thanks! :)

B*B, Tiar

mydeman
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message37008.htm

Jul 20 '05 #1
1 3126
*mydemand*:

I'm trying to code a layout in DIVs
Ew.
Here's the screenshot of the layout in Adobe Photoshop :
http://blessedbeproductions.com/ftfgscreenshot.jpg
Where's the layout in there? I see a collage of some women, "Fear the
Fangirl" in a huge fancy font below it and something unreadable in the same
font on the right. Below that, about 40% from the left is some tall T-shaped
thing with horns.

By the way, in general PNG and GIF are the better suited formats for
screenshots, but with the photos I grant you JFIF.
I've managed to code the columns
Columns?
with absolute coding,
What's that supposed to mean?
a) Make the divider line a small 1-pixel .GIF that repeats downwards
Oh, that T-thing is a divider and to the left and right of it shall be
columns?
However, a 1px-GIF can merely hold one color and can thus easily be replaced
by some CSS rule with 'border'.
b) Align the whole layout centrally,
That's only possible with fixed-width (bad) or width-limited (not so bad)
layouts and a FAQ anywhere CSS is discussed.
I managed to do (b) on [my demand] (http://mydemand.net
Ew! Never use 'pt' for 'font-size', except maybe in a print stylesheet.

Well, you more or less correctly used (along with many not so correct
'center's in HTML)

#container {
width: 740px;
margin-left: auto;
margin-right: auto
}

I don't get the following "position: relative", though.
it seems that I can't do (a) and (b) TOGETHER.


I can't tell you what problem you have with doing a), because you didn't
tell us, i.e. you gave us a meaningless picture without much explanation
from which we cannot even guess your HTML and CSS.

--
"Music is essentially useless, as life is."
George Santayana
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Question | last post by:
I am making a custom small menu which is most basic. Problem is that I can't make the first step work for some reason. I have an image to the left of where would be the layer positioned. This...
0
by: Wally Sanford | last post by:
I have a layer in a table at http://home.earthlink.net/~wallysanford/ that displays about how I'd like in IExplorer but is several pixels low in Netscape 7.x/6.x, Mozilla, Galeon, and Konqueror. ...
4
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here:...
10
by: Peter Altenberg | last post by:
is there some way to make the positioning of a layer (div) so that it is centered in the window. so even when you resize the window it stays centered? i would like to do this with CSS just like you...
4
by: Manny | last post by:
Hi, I would like to display a small html file in a layer (div) when the mouse goes over a link (<a href="small.html" onMouseOver="showPop(small.html)"). Which tag should I use in the layer :...
87
by: expertware | last post by:
Dear friends, My name is Pamela, I know little about CSS, but I would like to ask a question I have an image on a web page within a css layer: <DIV ID=MyLayer STYLE = "position:...
8
by: nescio | last post by:
hello, i have a script that finds the x and y from the mouse position, this works fine. but now i have an image in a layer : <div id='someLayer'> <img src='someImage.jpg'> </div>
2
by: gunnuk | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...
2
by: Chris | last post by:
I am working with javascript showing/hiding layers. If I am using a link's onclick to show a layer how do I make the layer show beside the link? There are many links on the page that may trigger...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.