Recently i've posted a question on how could i possibly attach an image on top of my navibar menu. I did it thanks for help. Now i am facing with another issue. What if someone who is on my site presses Ctrl + ? And zoom in ? or zoom out? Then my picture is going to flow left or right. i want it to stay fixed position. like a pinned image. Or sth like that. I tried to put php code inside a div but it didn't work. So what can i do for it ?
anestistsoukalis
0
Light Poster
Recommended Answers
Jump to PostFor a start off: This really isn't a PHP related question since it has more to do with CSS. I don't know why you're using PHP, unless, you are generating or rendering the image.
Post some code, otherwise, we cannot help.
Jump to PostPhorce is correct, this has nothing to do with PHP and will most likely be moved to CSS soon. However, wrapping your image in div tags and setting the nowrap style could solve your problem:
<div style="white-space: nowrap;"> <img ... /> </div>
I would of course …
Jump to PostYou're going to need to add the code, the whole navbar including the image you've added please (Not the actual image, just the code used to insert). Only then can I see where the CSS should be applied.
All 10 Replies
phorce
131
Posting Whiz in Training
Featured Poster
mmcdonald
28
Posting Pro
anestistsoukalis
0
Light Poster
mmcdonald
28
Posting Pro
LastMitch
mmcdonald
28
Posting Pro
LastMitch
mmcdonald
28
Posting Pro
LastMitch
mmcdonald
28
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.