CSS margin % + px

Started on the old forum in August 2011 · view the original in the archive · old links redirect here

#css--+-px

3 replies · 544 views · started 15 years ago · 1 min read

3 participants
athora Developer · 53 posts #1

I want to position a div class with left margin 10% + 225px. I tried with this

div.main1
{
position:absolute;
left:10% + 225px;
top:200px;
z-index:-1;
width:90%;
}

But there is no left margin in the result. Then i tried with 2 div

div.nextmainmenu
{
position:absolute;
top:200px;
left:10%;
}
div.nextmainmenu1
{
position:absolute;

left:225px;
}

Is there any other way to do this with in 1 div?

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close