Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unobedient image on opera!

Featured Replies

This is what my website is supposed to look like:

 

picture2.png

 

but this is what I get with Opera:

 

picture3.png

 

I'm using CSS for layout. Can anyone help me?

The div id "left" doesn't have a width to it so, quite rightly, Opera is placing the image with the normal document flow.

 

I suggest wrapping your header in it's own div to give you a bit more control, something like ...

 

<div id="header">

<!-- LOGO -->
<img src="images/adverblogo.png" width="265" height="120" class="logo" />

<!-- GLOBAL NAVIGATION -->
<div id="globalmenu">
<a href="mailto:mhughes@adverbdesigns.com">Email Me</a> | <a href="portfolio.html">Portfolio</a> | <a href="pricing.html">Pricing</a>
</div>

</div>


#header {
float: left;
width: 100%;
}
.logo {
float: left;
margin: 0 10px 0 0;
}

  • Author
The div id "left" doesn't have a width to it so, quite rightly, Opera is placing the image with the normal document flow.

 

I suggest wrapping your header in it's own div to give you a bit more control, something like ...

 

<div id="header">

<!-- LOGO -->
<img src="images/adverblogo.png" width="265" height="120" class="logo" />

<!-- GLOBAL NAVIGATION -->
<div id="globalmenu">
<a href="mailto:mhughes@adverbdesigns.com">Email Me</a> | <a href="portfolio.html">Portfolio</a> | <a href="pricing.html">Pricing</a>
</div>

</div>
#header {
float: left;
width: 100%;
}
.logo {
float: left;
margin: 0 10px 0 0;
}

 

Awesome! I'll try that! Thank you.

  • Author
The div id "left" doesn't have a width to it so, quite rightly, Opera is placing the image with the normal document flow.

 

I suggest wrapping your header in it's own div to give you a bit more control, something like ...

 

<div id="header">

<!-- LOGO -->
<img src="images/adverblogo.png" width="265" height="120" class="logo" />

<!-- GLOBAL NAVIGATION -->
<div id="globalmenu">
<a href="mailto:mhughes@adverbdesigns.com">Email Me</a> | <a href="portfolio.html">Portfolio</a> | <a href="pricing.html">Pricing</a>
</div>

</div>
#header {
float: left;
width: 100%;
}
.logo {
float: left;
margin: 0 10px 0 0;
}

 

 

That made my image stay within the frame on Opera, but now my links are not where I want them. What now?

You probably need to define a width and float to #globalmenu - you can set the width to whatever you like.

 

#globalmenu {
float: left;
width: auto;
text-align:center; 
font-size:1.5em; 
font-family:bank gothic, arial, sans-serif; 
height:120px;
}

  • Author
You probably need to define a width and float to #globalmenu - you can set the width to whatever you like.

 

#globalmenu {
float: left;
width: auto;
text-align:center; 
font-size:1.5em; 
font-family:bank gothic, arial, sans-serif; 
height:120px;
}

 

 

Ok, not sure what happened, but I went ahead and started from scratch, since I didn't have that much, and somehow I resolved the problem. I think I just hadn't divided my page right. Thanks so much for your help. BTW, if you visit the link it will still look the same I'm still in the process of updating. But thank you for your help!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.