1 reply [Last post]
imricky
imricky's picture
Offline
newbie
Last seen: 5 years 31 weeks ago
Timezone: GMT+5.5
Joined: 2014-12-28
Posts: 1
Points: 2

Hi
This is ricky and i want to ask few things like

1. When i zoom in or out it disturbs everything on page like text goes out of div's and like that which is so irritating and frustrating because i have been trying for few days to fix it but Sad
I have uploaded the pic of disturbed webpage when zoom in

2. I always make div's like five 0r six div's in the body and position them relative(they will position them as per body) and if i want to create a new div inside parent div i position them absolute......Is this a good approach to do

3. Should i enclose all my div's in one div like

<body>
  <div id="main">
     <div id="header"></div>
     <div id="all other div's"></div>
     <div id="footer"></div>
  </div>  
</body> 

//mod edit: Wrap your source code in bbcode [code] and [/code] tags. Fixed. ~gt

AttachmentSize
zoomin.png12.62 KB
zoomout.png4.06 KB
normal.png6.86 KB
csscode.png24.2 KB
gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 6 hours 28 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9761
Points: 3843

Wrong approach

Using the position property for page layout is the wrong way to do it. It is my opinion that tyros should avoid position for any but the most inconsequential page elements until his understanding of flow and out-of-flow are thoroughly grokked.

I suggest you work through the tutorials at HTML Dog.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.